CADability dotNET
Returns the difference of two solids. The second solid is removed from the first solid. If the solids are disjunct, (a clone of the) the first solid is returned. If the second solid contains the first solid, an empty array is returned.

Namespace: CADability.GeoObject
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static Solid[] Subtract(
	Solid first,
	Solid second
)
Visual Basic
Public Shared Function Subtract ( _
	first As Solid, _
	second As Solid _
) As Solid()
Visual C++
public:
static array<Solid^>^ Subtract(
	Solid^ first, 
	Solid^ second
)

Parameters

first
Type: CADability.GeoObject..::..Solid
first solid
second
Type: CADability.GeoObject..::..Solid
second solid

Return Value

the difference

See Also