You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 3D Model of human head. (It is ICT Face Model Light)
As shown, it has quadratic mesh and mesh.faces shape is (131372,). The number 131372 is divisible by 4, which corresponds to a quad topology.
I want to convert quad mesh to triangular mesh.
I tried to use mesh.triangulate() method and the result is shown below:
It seems that the conversion was successful, but if you look at the shape of mesh.faces, you will see that it is equal to (208880,), where the number 208880 is not divisible by 3, but is divisible by 4.
I need the mesh.faces shape to be divisible by 3 after triangulation.
As far as I understand, this result means that the topology of the model has not changed and we need do retopology procedure.
Please give me advice on how I can achieve the desired result.
Thank you!
The text was updated successfully, but these errors were encountered:
That's because mesh.faces will include a "header" for each face that indicates the number of points in that face. For example, the faces with points [0, 1, 2] and [10, 11, 12] will resolve within VTK as:
[3, 0, 1, 2, 3, 10, 11, 12]
The 3 indicates the number of points in the face and followed by the indices in the faces.
To be 100% sure, you can verify the mesh is composed only of triangles with the following. Note that the size of "faces" is still divisible by 4:
I have a 3D Model of human head. (It is ICT Face Model Light)
As shown, it has quadratic mesh and mesh.faces shape is (131372,). The number 131372 is divisible by 4, which corresponds to a quad topology.
I want to convert quad mesh to triangular mesh.
I tried to use mesh.triangulate() method and the result is shown below:
It seems that the conversion was successful, but if you look at the shape of mesh.faces, you will see that it is equal to (208880,), where the number 208880 is not divisible by 3, but is divisible by 4.
I need the mesh.faces shape to be divisible by 3 after triangulation.
As far as I understand, this result means that the topology of the model has not changed and we need do retopology procedure.
Please give me advice on how I can achieve the desired result.
Thank you!
The text was updated successfully, but these errors were encountered: