モデリングの描画
指定された度数のカーブを作成します。
注: このコマンドは、出力引数を使用します。 C#
および一部のスクリプト言語(JScript、PerlScript、Python
など)は、リファレンスによって渡される引数をサポートしていません。このため、状況に応じた適切な回避策を実行する必要があります。
スクリプト言語の場合、このコマンドは出力引数を取得するために使用できる ISIVTCollection を戻します。
C# の場合は、XSIApplication.ExecuteCommand
メソッドを使用してこのコマンドを呼び出すことができます。 ExecuteCommand は、出力引数を C# の
System.Object (出力引数の配列を含む)にパック化します(詳細については、「C#
からのコマンドの呼び出し」を参照)。
CreateCurve( [Degree], CurveType, [Points], [Local], [Value] ); |
パラメータ | タイプ | 詳細 | ||||||
---|---|---|---|---|---|---|---|---|
Degree | Integer | カーブの度数
デフォルト値: 3
|
||||||
CurveType | Integer | カーブを補間するかどうかを指定します。
デフォルト値: 1
|
||||||
Points | 文字列 | カンマで区切られたポイントのリスト。 少なくとも 1 つのポイントが必要です。 例: (0,1,0),(0,2,0),(3,3,0) | ||||||
Local | ブール | ポイントがローカル座標にある場合は True、グローバル座標にある場合は False。
デフォルト値: False |
||||||
値 | X3DObject | カーブを戻します。 |
' This example creates curves: ' 1) Cubic non-interpolated curve ' 2) Cubic interpolated curve ' 3) Linear non-interpolated curve ' NOTE: That a linear interpolated curve will give the same trace as linear non-interpolated curve. ' NOTE: Put no spaces in point list. newscene Dim CubicInterpolated, CubicNonInterpolated, LinearNonInterpolated 'Create curves. Points are in global coordinates. CreateCurve 3, 0, "(-2,0,0),(-2,0,-2),(2,0,-2),(2,0,0)", FALSE, CubicNonInterpolated CreateCurve 3, 1, "(-2,0,0),(-2,0,-2),(2,0,-2),(2,0,0)", FALSE, CubicInterpolated CreateCurve 1, 0, "(-2,0,0),(-2,0,-2),(2,0,-2),(2,0,0)", FALSE, LinearNonInterpolated 'Name the curves. SetValue CubicNonInterpolated & ".Name", "CubicNonInterpolated" SetValue CubicInterpolated & ".Name", "CubicInterpolated" SetValue LinearNonInterpolated & ".Name", "LinearNonInterpolated" |