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!
0 个评论
采纳的回答
Walter Roberson
2016-6-30
https://www.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader
0 个评论
更多回答(1 个)
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
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!