07-01-2021, 10:52 AM
Boolean operations work on meshes and in order to correctly position the mesh from the GeometryModel3D, the MeshBooleanOperations.Subtract method needs to transform the mesh before doing the subtract operation.
This is done by using MeshUtils.TransformMeshGeometry3D method.
To give you more control on transformations and which mesh is transformed, I recommend that you use Subtract methods that take two MeshGeometry3D objects and if needed transform the meshes by yourself by MeshUtils.TransformMeshGeometry3D method.
You may also use Ab3d.Meshes.BooleanMesh3D class. See the ModelingWithBooleanOperations.xaml.cs sample file on how to use that.
This is done by using MeshUtils.TransformMeshGeometry3D method.
To give you more control on transformations and which mesh is transformed, I recommend that you use Subtract methods that take two MeshGeometry3D objects and if needed transform the meshes by yourself by MeshUtils.TransformMeshGeometry3D method.
You may also use Ab3d.Meshes.BooleanMesh3D class. See the ModelingWithBooleanOperations.xaml.cs sample file on how to use that.
Andrej Benedik

