Go to: Synopsis. Return value. Keywords. MEL examples.

Synopsis

string[] findAllIntersections(string $crvs[], int $numCrvsToIntersect,
int $useDir, float $dirX, float $dirY, float $dirZ,
float $tolerance, int $sorted, int $history,
string $intersectNodes[] )

Find all intersections between a list of curves, two at a time. If there are no intersections, then no nodes are created.

Return value

None

Keywords

curve NURBS intersect ,

Arguments

Variable Name Variable Type Description
$crvsstring[]List of curves to intersect
$crvCountintNumber of curves on the list
$useDirintUse the direction for intersection
$dirXfloatX Direction for intersection
$dirYfloatY Direction for intersection
$dirZfloatZ Direction for intersection
$tolerancefloatIntersection tolerance
$sortedintSort the parameter list?
$historyintRemember construction history?
$intersectNodesstring[]List of intersection nodes created

MEL examples

	curve -d 3 -p -1.16652 0 11.032493 -p -1.944098 0 9.982625 -p -3.499254 0 7.882891 -p -3.360333 0 -5.757598 -p 3.819598 0 -1.063913 -p 7.409563 0 1.282929 -k 0 -k 0 -k 0 -k 1 -k 2 -k 3 -k 3 -k 3 ;
	curve -d 3 -p -7.921998 0 -6.423076 -p -2.89468 0 -2.134852 -p 7.159956 0 6.441594 -p 8.281336 0 7.981051 -p 8.842026 0 8.75078 -k 0 -k 0 -k 0 -k 1 -k 2 -k 2 -k 2 ;
	string $curves[2] = {"curve1","curve2"};
	global string $nodes[];
	findAllIntersections($curves, size($curves), 0, 0,0,0, 0, 0, 0, $nodes);
	// Result:  1.851245417  0.3818904997 //