You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are the returned values for attrib.num_face_num_verts and attrib.num_faces swapped ?
Loading a simple object that has only a cube and a plane I get
attrib.num_face_num_verts = 14
attrib.num_faces = 42
There are 7 square faces, so 14 triangles, each with 3 vertices, so
attrib.num_face_num_verts = 42
attrib.num_faces = 14
would seem more sensible values.
The text was updated successfully, but these errors were encountered:
attrib.num_faces is actually the array length of vertex indices. 14 triangles * 3 vertex = 42 attrib.num_face_num_verts is the array length of the number of vertices per face(= the number of faces = 14)
Naming of these variables are confusing. I need to find a good naming for it.
I've closed this issue because I'm no longer using this library. I've gone back to my own code where at least I understand what the variable names mean.
Are the returned values for attrib.num_face_num_verts and attrib.num_faces swapped ?
Loading a simple object that has only a cube and a plane I get
attrib.num_face_num_verts = 14
attrib.num_faces = 42
There are 7 square faces, so 14 triangles, each with 3 vertices, so
attrib.num_face_num_verts = 42
attrib.num_faces = 14
would seem more sensible values.
The text was updated successfully, but these errors were encountered: