Click or drag to resize
Ab4d.SharpEngine logo

BooleanMeshSubtract(StandardMesh, Transform, Boolean) Method

Subtracts the specified StandardMesh from this BooleanMesh. The generated mesh can be obtained by calling the GetMesh method.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void Subtract(
	StandardMesh mesh,
	Transform? meshTransform = null,
	bool generateInnerTriangles = true
)

Parameters

mesh  StandardMesh
StandardMesh
meshTransform  Transform  (Optional)
optional transformation that will transform the StandardMesh
generateInnerTriangles  Boolean  (Optional)
when true (by default) then the triangles inside the first mesh are generated (this closes the hole that is created by subtraction); when false then no additional inner triangles are generated - only existing triangles are processed in subtraction
See Also