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 managed to reproduce the "divide by zero" error, so it looks like there's a bug...! As a workaround, if you compact the mesh after removing the face, the "divide by zero" error disappears.
Note: compacting the data structure might change all the indexing! For example, if by removing the face there are now vertices that aren't connected to anything, they will be removed and the list of vertices will shrink, changing all the vertex indices. All the other faces/halfedges will be updated to reflect the new indexing, but you might have some external code that relies on the original indexing...
PlanktonMeshpm=x.ToPlanktonMesh();pm.Faces.RemoveFace(0);pm.Compact();// purges any unreferenced vertices, faces and halfedgesA=pm;
Hi,
I would like to ask how to properly delete face from planktonMesh.
When I do it like this I get error for division by zero.
I just want to remove one first face from planktonMesh.
The text was updated successfully, but these errors were encountered: