CADability dotNET
Tests the collision of two solids. The current position of the drives is applied to both objects (typically one of the objects is static). If there is a collision, true is returned and the collisionPoint is filled with an arbitrary point where collision takes place.

Namespace:  CADability
Assembly:  CADability (in CADability.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public bool Collision(
	Solid firstObject,
	Solid secondObject,
	double precision,
	out GeoPoint collisionPoint
)
Visual Basic (Declaration)
Public Function Collision ( _
	firstObject As Solid, _
	secondObject As Solid, _
	precision As Double, _
	<OutAttribute> ByRef collisionPoint As GeoPoint _
) As Boolean
Visual C++
public:
bool Collision(
	Solid^ firstObject, 
	Solid^ secondObject, 
	double precision, 
	[OutAttribute] GeoPoint% collisionPoint
)

Parameters

firstObject
Type: CADability.GeoObject..::.Solid
First Solid of the test
secondObject
Type: CADability.GeoObject..::.Solid
Sirst Solid of the test
precision
Type: System..::.Double
collisionPoint
Type: CADability..::.GeoPoint %
Collision point

Return Value

True if there is a collision, false otherwise

See Also