Click or drag to resize
Ab4d.SharpEngine logo

MeshBooleanOperations Class

MeshBooleanOperations static class defines methods that can execute subtract, intersect or union operations on 3D models.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesMeshBooleanOperations

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public static class MeshBooleanOperations

The MeshBooleanOperations type exposes the following members.

Methods
 NameDescription
Public methodStatic memberIntersect Returns a new StandardMesh that is created by intersecting mesh1 and mesh2 (space defined by both mesh1 and mesh2).
Public methodStatic memberSubtract(StandardMesh, StandardMesh, Boolean, Boolean) Returns a new StandardMesh that is created by subtracting mesh2 from mesh1 (space defined by mesh1 but not inside mesh2).
Public methodStatic memberSubtract(GroupNode, StandardMesh, Transform, Boolean, Boolean) Returns a GroupNode that is created by subtracting mesh from all the ModelNodes in the GroupNode. Note that the children from specified GroupNode may be moved to the returned GroupNode (this happens when they are preserved because they do not intersect with the mesh).
Public methodStatic memberSubtract(ModelNode, StandardMesh, Transform, Boolean, Boolean) Returns a ModelNode that is created by subtracting mesh from modelNode (space defined by mesh but not inside modelNode). The mesh that is defined by modelNode is transformed by optional parentTransform and by ModelNode.Transform.
Public methodStatic memberSubtract(SceneNode, StandardMesh, Transform, Boolean, Boolean) Returns a SceneNode that is created by subtracting mesh from all the specified SceneNode (can be GroupNode or node derived from ModelNode).
Public methodStatic memberUnion Returns a new StandardMesh that is created by merging mesh1 and mesh2 (space defined by either mesh1 or mesh2).
Top
Fields
 NameDescription
Public fieldStatic memberCoplanarEpsilon Static float that specifies how much a distance from a position to the triangle plane can be to consider the position to lie on the plane. Default value is 0.001f.
Top
See Also