Notifications
Clear all

[Closed] sdk – vertex indexes and faces

i don’t have a chance to test it now but it should be something like:


for (int f = 0; f < pMesh->numFaces; f++) {
	TVFace *pTVFace = &pMesh->tvFace[f];
	for (int v = 0; v < 3; v++) {
		int tvindex = pTVFace->t[v];
		UVVert uvvert = pMesh->getTVert(tvindex);
	}
}

thank you DenisT, I’ll implement it this way, and report back.

I’m very thankful for all the help and knowledge you share.

Page 2 / 2