AB4D Forum

Full Version: boolean operation error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,
i'm trying to do a subtract boolean operation with a geometrymodel and a meshgeometry like that:
Ab3d.Utilities.MeshBooleanOperations.Subtract(mygeometrymodel3d, mymesh)

but the resulting mesh has positions ok but no normals (the normal collection is empty).
Note that  the starting model and mesh have normals and positions collections ok.

Somebody can help me?
You can calculate normals by using Ab3d.Utilities.MeshUtils.CalculateNormals method.

Note that if the mesh does not have MeshGeometry3D.Normals set then they are calcualted internally by WPF (when using WPF 3D rendeirng engine) or internally by DXEngine (when using it to render 3D scene; in this case the normals are not set in the MeshGeometry3D object but in the mesh object that is created by DXEngine). This means that MeshGeometry3D.Normals are not needed for showing the model.