AB4D Forum
filling holes on mesh - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9)
+--- Thread: filling holes on mesh (/showthread.php?tid=4199)



filling holes on mesh - kreativasas - 06-08-2020

Hi,

I have a problem to solve:

I do a transform (rotation) on some position of a mesh and after the transformation i can see some holes on the mesh.
There is a way to fill the holes created by the rotation?


RE: filling holes on mesh - close - 06-08-2020

(06-08-2020, 10:45 AM)kreativasas Wrote: Hi,

I have a problem to solve:

I do a transform (rotation) on some position of a mesh and after the transformation i can see some holes on the mesh.
There is a way to fill the holes created by the rotation?


Try to set the "BackMaterial" Property.

Code:
YourVisual.BackMaterial = YourVisual.Material ;



RE: filling holes on mesh - abenedik - 06-09-2020

With setting up the BackMaterial you will be able to see the inner part of your object - so you will not just simply see through the object, but will see what is inside.

But if you want to fill the holes that appeared after you have moved / rotated some of the positions, you will need to insert additional positions and triangles (TrianglesIndices) to fill the holes. I do not know of any generic solution for that - you will need to calculate or otherwise figure that out based on your meshes and the type of transformation you are doing.

To help you with understanding how your mesh is created (to see the position indexes and indexes of triangles), you can use the MeshInspectorOverlay from Ab3d.PowerToys - see the Utilities / MeshInspectorOverlay sample.