WireFrameVisual from GeometryModel3D created with MeshBooleanOperations
#2
PolygonIndices are defined by a manually created collection of positions that can define the polygons for a 3D model and that can be used to show edges of the 3D model (this shows less lines then when lines for each triangle are shown).

The standard objects created by Ab3d.PowerToys can generate the PolygonIndices (this is enabled by setting the static Ab3d.Utilities.MeshUtils.CreatePolygonIndicesByDefault filed to true - though in your case it would be better to set that before creating the box meshes).

But some advanced objects like creating an extruded objects and using boolean operations does not recreate the PolygonIndices.


So you have two options:
1) if you just want to show wireframe with showing all the triangles, then just set the WireframeVisual1.ShowPolygonLines to false.

2) if you want to show correct model edges, then you will need to use the EdgeLinesFactory class that can define the model edges - see the "Edge lines creation" sample in the "3D lines section". Then you will need to use MultiLineVisual3D to show the 3D lines (and not WireframeVisual3D).
Andrej Benedik
  


Messages In This Thread
RE: WireFrameVisual from GeometryModel3D created with MeshBooleanOperations - by abenedik - 02-16-2021, 12:05 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)