NurbsSurface.GetTrim operator

説明

NURBS サーフェイストリムの完全なデータ記述を戻します。トリムは、NURBS サーフェイス上に投影されたNURBS カーブリストです。

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

C#構文

NurbsSurface.GetTrim( Int32 in_nTrimIndex, siNurbsFormat in_eNurbsFormat, Object& out_vsabIsBoundary, Object& out_vsalProjectionType, Object& out_vsalCount, Object& out_vsaControlPoints, Object& out_vsaNbControlPoints, Object& out_vsadKnots, Object& out_vsaNbKnots, Object& out_vsasClosed, Object& out_vsalDegree, Object& out_vsalParameterization );

スクリプト構文

NurbsSurface.GetTrim( TrimIndex, [NurbsFormat], IsBoundary, ProjectionType, Count, ControlPoints, [NbControlPoints], [Knots], [NbKnots], [Closed], [Degree], [Parameterization] );

パラメータ

パラメータ タイプ 説明
TrimIndex Long どのトリムを記述するか指定します。
NurbsFormat siNurbsFormat NURBs のデータ形式を指定します。

デフォルト値:siSINurbs

IsBoundary Boolean トリムがバウンダリかどうかを指定します。
ProjectionType Long このトリムのプロジェクションタイプを指定します。

指定可能な値:

説明:

0 UV 空間
1 ワールド空間
Count Long トリムに含まれるNURBS カーブの数
ControlPoints 2DArray コントロールポイントは 2D 配列に格納されます。

配列は 4 x ControlPoint の数です。
NbControlPoints LongArray NurbsCurve ごとの ControlPoint の数を指定します。
Knots DoubleArray ノット値の配列
NbKnots LongArray NURBS カーブごとのノットの数を指定します。
Closed BooleanArray NURBS カーブが閉じているかどうかを指定します。

デフォルト値: False

Degree LongArray NURBS カーブの次数

デフォルト値: 3

Parameterization siKnotParameterizationArray NURBS カーブのパラメータ配置方法

VBScript の例

Dim lDegree, bClosed, eParameterization, aControlVertex, aKnots, lCount, aNbControlVertex, bIsBoundary, lProjType

set oRoot = application.activeproject.activescene.root

set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )

' extract each trim contained in the surface

for i = 0 to (oSphere.ActivePrimitive.Geometry.Surfaces.Item(0).TrimCount - 1)

	oSphere.ActivePrimitive.Geometry.Surfaces.Item(0).GetTrim _

		i, _

		siSINurbs, _

		bIsBoundary, _

		lProjType, _

		lCount, _

		aControlVertex, _

		aNbControlVertex, _

		aKnots , _

		aNbKnots, _

		bClosed, _

		lDegree, _

		eParameterization

	oRoot.AddNurbsCurveList2 _

		lCount, _

		aControlVertex, _

		aNbControlVertex, _

		aKnots, _

		aNbKnots, _

		bClosed, _

		lDegree, _

		eParameterization, _

		siSINurbs

next

関連項目

NurbsSurfaceMesh.AddSurfaceWithTrim NurbsSurface.GetTrim2 NurbsSurface.TrimCount