Click or drag to resize
Ab4d.SharpEngine logo

BooleanMesh Class

BooleanMesh class can be used to create a Mesh by using Boolean operations. The BooleanMesh caches the internal objects and is therefore much faster then MeshBooleanOperations class when using multiple Boolean operations on one mash. Also the actual Mesh is not generated after each Boolean operation but only after the user calls the GetMesh method is called.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.MeshesBooleanMesh

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class BooleanMesh

The BooleanMesh type exposes the following members.

Constructors
 NameDescription
Public methodBooleanMesh Constructor
Top
Methods
 NameDescription
Public methodGetMesh Returns the StandardMesh after the initial mesh is processed by the performed Boolean operations.
Public methodIntersect(BooleanMesh) Updates this BooleanMesh so that it will be defined as an intersection of this BooleanMesh and the specified booleanMesh. The generated mesh can be obtained by calling the GetMesh method.
Public methodIntersect(StandardMesh, Transform) Updates this BooleanMesh so that it be defined as an intersection of this BooleanMesh and the specified StandardMesh. The generated mesh can be obtained by calling the GetMesh method.
Public methodSubtract(BooleanMesh, Boolean) Subtracts the specified booleanMesh from this BooleanMesh. The generated mesh can be obtained by calling the GetMesh method.
Public methodSubtract(StandardMesh, Transform, Boolean) Subtracts the specified StandardMesh from this BooleanMesh. The generated mesh can be obtained by calling the GetMesh method.
Public methodUnion(BooleanMesh) Updates this BooleanMesh with merging it with the specified booleanMesh. The generated mesh can be obtained by calling the GetMesh method.
Public methodUnion(StandardMesh, Transform) Updates this BooleanMesh with merging it with the specified StandardMesh. The generated mesh can be obtained by calling the GetMesh method.
Top
See Also