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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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