移動先: 概要 戻り値 キーワード. MEL 例.

概要

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

カーブのリスト間のすべての交差を一度に 2 つずつ検索します。 交差がない場合、ノードは作成されません。

戻り値

なし

キーワード

curve NURBS intersect ,

引数

変数名 変数型 説明
$crvsstring[]インターセクトするカーブのリストです。
$crvCountintリスト内のカーブ数です。
$useDirint交差の方向を使用します。
$dirXfloat交差の X 方向です。
$dirYfloat交差の Y 方向です。
$dirZfloat交差の Z 方向です。
$tolerancefloat交差の許容値です。
$sortedintパラメータ リストをソートしますか?
$historyintコンストラクション ヒストリを記憶しますか?
$intersectNodesstring[]作成した交差ノードのリストです。

MEL 例

	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 //