findProfilePlane()

概要

入力曲線パーツ一覧が含まれている平面の法線ベクトル中心点を返します。

構文

findProfilePlane ( curves As List ) As List 
引数 [タイプ] 説明
曲線 [一覧] このプロファイルを形成する曲線パーツ一覧です。曲線はすべて同じ平面にある必要があり、そうでない場合はエラーが発生します。

例 1

両方の例で定義されたパーツ
Child Line_1 As Line
    thruPoint1 = point(0,0,0)
    thruPoint2 = point(1,0,0)
End Child

Child Line_2 As Line
    thruPoint1 = point(1,0,0)
    thruPoint2 = point(1,1,0)
End Child

Child Line_3 As Line
    thruPoint1 = point(1,1,0)
    thruPoint2 = point(1,1,1)
End Child
Intent >findProfilePlane({Line_1, Line_2}) 
--> {Point_(0.0, 0.0, 0.0, WorldFrame()), Vector_(0.0, 0.0, 1.0, WorldFrame())}
この結果は、2 つの線分は、X、Y 平面上にプロファイルを形成していることを示します。

例 2

Intent >findProfilePlane({Line_1, Line_2, Line_3}) 
結果: エラー

この例では 3 番目の線分が他の 2 つと同じ平面上に配置されていないため、エラーが発生します。