Although I can create 3 vertex faces with hypermesh_add_face, hypermesh_to_displistmesh seems to have a problem with them (I get an access violation here:
Code: Select all
static DispListMesh *hypermesh_to_displistmesh(HyperMesh *hme, short flag) {
.
.
mf->v1= (int) f->verts[0]->nmv;
mf->v2= (int) f->verts[1]->nmv;
mf->v3= (int) f->verts[2]->nmv;
mf->v4= (int) f->verts[3]->nmv;/*<--right here*/
Finally, I am wondering if there is any order to the verts array in HyperFace. Am I guaranteed that vert 0 will not share an edge with vert 2? ie:
Code: Select all
0-----1
| |
| |
3-----2
thanks
\n