Today, we found that the mesh of Max's teapot has two points with the same index on one side. Ah, hahaha, mesh really has all the structures. If you are interested, try it.
View code
for (int i=0; i<GetCOREInterface()->GetSelNodeCount(); i++)
{
Object * selectObject = ip->GetSelNode(i)->GetObjectRef();
TriObject *tri = (TriObject *)selectObject->ConvertToType(ip->GetTime(),Class_ID(TRIOBJ_CLASS_ID, 0));
Mesh tempMesh = tri->GetMesh();
int faceCount = tempMesh.numFaces;
for (int fi = 0;fi<faceCount;++fi)
{
Face tempface = tempMesh.faces[fi];
char v1char[10] = {'0'};
DWORD v1 = tempface.v[0];
ultoa(v1,v1char,10);
char v2char[10] = {'0'};
DWORD v2 = tempface.v[1];
ultoa(v2,v2char,10);
char v3char[10] = {'0'};
DWORD v3 = tempface.v[2];
ultoa(v3,v3char,10);
char fichar[10] = {'0'};
ultoa(fi,fichar,10);
mputs("fi : ");
mputs(fichar);
mputs(" | ");
mputs(v1char);
mputs(" , ");
mputs(v2char);
mputs(" , ");
mputs(v3char);
mputs("\r\n");
}