Notifications
Clear all

[Closed] Polygons and triangulation

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.

6 Replies

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?..

can analysing mypoly.mesh compared to the mypoly help?

Josh.

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…

sounds very labour and memory intensive. what about deptaching the polygon into a seperate mesh and analysing one bit at a time?

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.

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