getting vertices and face as numpy array from a stl file using trimesh

1.6k views Asked by At

I have an STL file, I now need to read the vertices and face value of that STL file using trimesh.

 myobj = trimesh.load_mesh("file.stl", enable_post_processing=True, solid=True) 
 myobj.faces #gives me ndarray of faces 

how to read vertices from myobj ?

1

There are 1 answers

0
AlonOfficial5050 On
myobj.vertices

Here's the document