Page 1 of 1

find the neighbor triangle

Posted: Wed Jun 15, 2016 11:27 am
by snfge
Hi
I want to konw how many triangles in one model, find the neighbor triangle and find the vertex coordinate of triangle, which file I can find the functions? thank you.

Re: find the neighbor triangle

Posted: Thu Jun 16, 2016 5:20 am
by daniel
The first and last steps are easy (see the ccGenericMesh and ccMesh classes).

The second one is harder. We don't maintain any advanced topology structure on meshes (as we don't use any). So you''ll have to build it yourself. I believe there's a quality testing method in ccMesh that does something similar