PointCollection.Navigate

導入

v3.0

詳細

ジオメトリのポイント間を移動できます。このメソッドは、コレクション内のコンポーネントごとに対応するポイントを戻します。

C#構文

PointCollection PointCollection.Navigate( siNavigateComponentType in_siNavigate );

スクリプト構文

oReturn = PointCollection.Navigate( Navigation );

戻り値

PointCollection

パラメータ

パラメータ タイプ 説明
Navigation siNavigateComponentType 移動方向を選択します。

VBScript の例

set oObj = ActiveSceneRoot.addgeometry( "Cube", "MeshSurface" )

set oPoints = oObj.ActivePrimitive.Geometry.Facets(2).Points

set oFirstPoints = oPoints.Navigate(siFirstComponent)

logmessage "The associated first points are "

for each point in oFirstPoints

		logmessage point.index & " "

next

set oLastPoints = oPoints.Navigate(siLastComponent)

logmessage "The associated last points are "

for each point in oLastPoints

		logmessage point.index & " "

next

set oNextPoints = oPoints.Navigate(siNextComponent)

logmessage "The associated next points are "

for each point in oNextPoints

		logmessage point.index & " "

next

set oPreviousPoints = oPoints.Navigate(siPreviousComponent)

logmessage "The associated previous points are "

for each point in oPreviousPoints

		logmessage point.index & " "

next

関連項目

Point.Navigate Geometry.Points