NurbsSurface.Get operator

説明

NurbsSurface の完全なデータ記述を戻します。

注: このメソッドでは output arguments が使用されます。C#および他のスクリプト言語(JScript、PerlScriptなど)では、引数の参照渡しは使用できません。ただし、C#、JScript、および PerlScript で使用しても安全な、このメソッドの代替バージョンNurbsSurface.Get2が用意されています。

スクリプト 構文

NurbsSurface.Get( [NurbsFormat], ControlPoints, [UKnots], [VKnots], [UClosed], [VClosed], [UDegree], [VDegree], [UParameterization], [VParameterization] );

パラメータ

パラメータ タイプ 詳細
NurbsFormat siNurbsFormat NURBs のデータ形式を指定します。

デフォルト値:siSINurbs

ControlPoints 3DArray コントロールポイントは3D 配列に格納されます。

配列は、4 * V ControlPoint の数 * U ControlPoint の数です。
UKnots DoubleArray U方向のノット値の配列
VKnots DoubleArray V方向のノット値の配列
UClosed Boolean NURBS サーフェイスが U方向で閉じられているかどうかを指定します。
VClosed Boolean NURBS サーフェイスがV方向で閉じられているかどうかを指定します。
UDegree Long NURBS サーフェイスの U方向の次数
VDegree Long NURBS サーフェイスの V方向の次数
UParameterization siKnotParameterization NURBS サーフェイスの U方向のパラメータ配置方法
VParameterization siKnotParameterization NURBS サーフェイスの V方向のパラメータ配置方法

VBScript の例

Dim lDegree(2), bClosed(2), eParameterization(2), aControlPoints, aKnots(2)
set oRoot = Application.activeproject.activescene.root
set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )
oSphere.ActivePrimitive.Geometry.Surfaces(0).Get _              
        siSINurbs, _
        aControlPoints, _
        aKnots(siUDirection),aKnots(siVDirection) , _
        bClosed(siUDirection),bClosed(siVDirection), _
        lDegree(siUDirection),lDegree(siVDirection), _
        eParameterization(siUDirection),eParameterization(siVDirection)
' Create new nurbs surface list from arc data.
set oNurbsSurface = oRoot.AddNurbsSurface( _
        aControlPoints, _
        aKnots(siUDirection),aKnots(siVDirection), _
        bClosed(siUDirection),bClosed(siVDirection), _
        lDegree(siUDirection),lDegree(siVDirection), _
        eParameterization(siUDirection),eParameterization(siVDirection), _
        siSINurbs)