Any way to get the number of vertices in an ofMeshFace?


#1

Hey everyone,
I am trying to create an algorithm that converts the faces of an STL file to my own face type. In order for me to achieve this, I need to access all of the vertices in a specific face. I tried using ofMeshFace but it doesn’t have a way to get the number of vertices that each face has. So my question is: Is there a way to get the vertices of an ofMeshFace or is there a better way to get a list of all of the model’s faces and their respective vertices.
Thanks in advance.


#2

the ofMeshFace is always a triangle, hence it has 3 vertices, 3 normals, 3 colors and 3 texCoords.
ofMeshFace is the way to go.
cheers


#3

Thanks! I guess the follow up is there a reference of the 3d part of openFrameworks where this is explained?
Regards