Go to: Synopsis. Return value. Keywords. MEL examples.
string[] findAllIntersections(string $crvs[], int $numCrvsToIntersect,
int $useDir, float $dirX, float $dirY, float $dirZ,
float $tolerance, int $sorted, int $history,
string $intersectNodes[] )
None
| Variable Name | Variable Type | Description |
|---|---|---|
| $crvs | string[] | List of curves to intersect |
| $crvCount | int | Number of curves on the list |
| $useDir | int | Use the direction for intersection |
| $dirX | float | X Direction for intersection |
| $dirY | float | Y Direction for intersection |
| $dirZ | float | Z Direction for intersection |
| $tolerance | float | Intersection tolerance |
| $sorted | int | Sort the parameter list? |
| $history | int | Remember construction history? |
| $intersectNodes | string[] | List of intersection nodes created |
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 //