How to get coordinates values X, Y, Z from the Meshed file in matlab?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SASIREKHA DURAISAMY
le 17 Juin 2020
Commenté : DGM
le 28 Juil 2025
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 commentaires
Réponse acceptée
Ameer Hamza
le 18 Juin 2020
Modifié(e) : Ameer Hamza
le 19 Juin 2020
Something like this
TR = stlread('tristltext.stl');
x = TR.Points(:,1);
y = TR.Points(:,2);
z = TR.Points(:,3);
7 commentaires
Ameer Hamza
le 19 Juin 2020
In this can, you can write
TR = stlread('tristltext.stl');
x = TR.vertices(:,1);
y = TR.vertices(:,2);
z = TR.vertices(:,3);
DGM
le 28 Juil 2025
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!