Is there any way I can access all the surface coordinates of an imported .stl file?

17 views (last 30 days)
I would like to see all the surface values of my imported 3d model, like the ones displayed on the left.

Answers (1)

KSSV
KSSV on 9 Jun 2021
gm = importGeometry(myfile);
gm
Check the LHS gm it has all the data you want.
  5 Comments
Seb
Seb on 9 Jun 2021
data = stlread('HalbeKugel.stl');
s=trisurf(data,'FaceColor','none','EdgeColor','k')
axis equal
s.Vertices
x=s.Vertices(:,1)
y=s.Vertices(:,2)
z=s.Vertices(:,3)
I managed to get the coordinates. The goal is to determine the surfaces characteristics, e.g. the slope.
Thanks for the help so far.

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!