How to get coordinates values X, Y, Z from the Meshed file in matlab?
9 次查看(过去 30 天)
显示 更早的评论
I have a meshed bone model(stl file). I have to extract data points (X,Y, Z coordinates) from the model which has 4000 nodes.
Can anyone suggest some idea to proceed?
0 个评论
采纳的回答
Ameer Hamza
2020-6-18
编辑:Ameer Hamza
2020-6-19
Something like this
TR = stlread('tristltext.stl');
x = TR.Points(:,1);
y = TR.Points(:,2);
z = TR.Points(:,3);
7 个评论
Ameer Hamza
2020-6-19
In this can, you can write
TR = stlread('tristltext.stl');
x = TR.vertices(:,1);
y = TR.vertices(:,2);
z = TR.vertices(:,3);
DGM
2025-7-28
OP was using FEX #22409 or a related third-party decoder. It has limitations and is not necessary in R2019a.
Since R2018b, MATLAB has built-in STL tools as described in the initial answer.
For legacy versions needing third-party tools, I'd recommend these tools over #22409. This explains why.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!