
サーフェイスをメッシュに追加します。
oReturn = NurbsSurfaceMesh.AddSurface( [ControlPoints], [UKnots], [VKnots], [UClosed], [VClosed], [UDegree], [VDegree], [UParam], VParam, [NurbsFormat] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| ControlPoints | 1Dまたは3DArray | NURBS サーフェイスの作成に使用されるコントロールポイント。このコントロールポイントは、1D 配列または X,y,z,w値の 3D 配列の行列(UxVx4)で保存できます。1D 配列には、開始点(後ろにx,y,z,w値のシーケンスが続く)におけるU、V方向のポイント数が含まれます(例:{U,V,Xo,Yo,Zo,...X(uv-1),Y(uv-1),Z(uv-1),W(uv-1)})。 |
| UKnots | DoubleのArray | U方向のノット値のベクトル |
| VKnots | DoubleのArray | V方向のノット値の配列 |
| UClosed | Boolean | NURBS サーフェイスが U方向で閉じられているかどうかを指定します。 |
| VClosed | Boolean | NURBS サーフェイスがV方向で閉じられているかどうかを指定します。 |
| UDegree | Long | NURBS サーフェイスの U方向の次数 |
| VDegree | Long | NURBS サーフェイスの V方向の次数 |
| UParam | siKnotParameterization | NURBS サーフェイスの U方向のパラメータ配置方法 |
| VParam | siKnotParameterization | NURBS サーフェイスの V方向のパラメータ配置方法 |
| NurbsFormat | siNurbsFormat | NURBs のデータ形式を指定します。
デフォルト値:siSINurbs |
Dim oRoot, oSphere, oNurbsSurfaceMesh, oNurbsSurface, _
lDegree(2), bClosed(2), eParameterization(2), aControlPoints, aKnots(2)
set oRoot = Application.activeproject.activescene.root
set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )
set oNurbsSurfaceMesh = oRoot.AddNurbsSurfaceMesh
oSphere.ActivePrimitive.Geometry.Surfaces(0).GetData _
aControlPoints, _
aKnots(siUDirection),aKnots(siVDirection) , _
bClosed(siUDirection),bClosed(siVDirection), _
lDegree(siUDirection),lDegree(siVDirection), _
eParameterization(siUDirection),eParameterization(siVDirection), _
siSINurbs
' add nurbs surfaces from sphere data.
set oNurbsSurface = oNurbsSurfaceMesh.activeprimitive.geometry.AddSurface( _
aControlPoints, _
aKnots(siUDirection),aKnots(siVDirection), _
bClosed(siUDirection),bClosed(siVDirection), _
lDegree(siUDirection),lDegree(siVDirection), _
eParameterization(siUDirection),eParameterization(siVDirection), _
siSINurbs )
|