PDA

View Full Version : Polygons and triangulation


prettyPixel
11-08-2005, 10:19 AM
Is there a mean to know the triangulation in a face of an edit poly?

For example I have a face with 6 vertices. I would like to know how this face is divided in triangles.

prettyPixel
11-08-2005, 01:46 PM
Currently It exist an instruction fo set the triangluation in a poly face : polyOp.setDiagonal

If It exist an instruction to set the triangulation then a means indeed has to exist to read the current triangulation.
The only way of making it for me is to convert the object to a mesh. But if I do that, how to find faces?...

j-man
11-08-2005, 01:46 PM
can analysing mypoly.mesh compared to the mypoly help?

Josh.

prettyPixel
11-08-2005, 01:53 PM
I could compare each point of the poly with each point of the mesh, and to find the faces.
I hope that there is another means...

j-man
11-08-2005, 01:55 PM
sounds very labour and memory intensive. what about deptaching the polygon into a seperate mesh and analysing one bit at a time?

prettyPixel
11-08-2005, 02:02 PM
That is artful.
I do not know if that is better because if I have 1000 faces then I am going to have to create 1000 meshes and erase them later.

prettyPixel
11-08-2005, 02:53 PM
The indices of the poly vertices are the same as the mesh vertices.
That is a small consolation.

CGTalk Moderation
11-08-2005, 02:53 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.