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

prettyPixel

11 November 2005, 02: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 November 2005, 02:46 PM

can analysing mypoly.mesh compared to the mypoly help?

Josh.

prettyPixel

11 November 2005, 02: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 November 2005, 02: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 November 2005, 03: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 November 2005, 03:53 PM

The indices of the poly vertices are the same as the mesh vertices.
That is a small consolation.

CGTalk Moderation

11 November 2005, 03: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.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com