I would like to import data from an STL file of a 3D object to MATLAB and create a 2D contour plot of it. Does anyone have any ideas about this? Thanks!

조회 수: 16 (최근 30일)
I am trying to create a contour plot showing the thickness of this odd shaped 3D body similar to a topography map. If I had a matrix of x and y coordinates with the thickness at those locations (not just height but thickness) then I could create a contour plot. I do not know how to import the STL to MATLAB however and extract this information from it. Any tips would be greatly appreciated!

채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 30일
https://www.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader

추가 답변 (1개)

Ahmet Cecen
Ahmet Cecen 2016년 6월 30일
STL files have a very specific format you can exploit to gather your data automatically. Try using "textscan" followed by "strsplit" to get the x, y, z coordinates of the vertices.
  댓글 수: 1
Edgar Crassier
Edgar Crassier 2021년 2월 6일
Could I get more information on this method? I do not understand how to extract the vertices variable into separate x,y and z coordinates.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by