Click or drag to resize
Ab4d.SharpEngine logo

MeshBooleanOperationsSubtract(StandardMesh, StandardMesh, Boolean, Boolean) Method

Returns a new StandardMesh that is created by subtracting mesh2 from mesh1 (space defined by mesh1 but not inside mesh2).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static StandardMesh? Subtract(
	StandardMesh? mesh1,
	StandardMesh? mesh2,
	bool processOnlyIntersectingTriangles = true,
	bool generateInnerTriangles = true
)

Parameters

mesh1  StandardMesh
original StandardMesh that will be subtracted by removing the mesh2
mesh2  StandardMesh
StandardMesh that will be removed from mesh1
processOnlyIntersectingTriangles  Boolean  (Optional)
when true (by default) then only triangles from mesh1 that intersect the bounds of mesh2 will be processed by subtraction; other triangles will be copied from the mesh1. This can produce significantly simpler mesh.
generateInnerTriangles  Boolean  (Optional)
when true (by default) then then 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

Return Value

StandardMesh
Subtracted StandardMesh
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshBooleanOperations.Subtract(Ab4d.SharpEngine.Meshes.StandardMesh,Ab4d.SharpEngine.Meshes.StandardMesh,System.Boolean,System.Boolean)"]

See Also