Facet.Navigate

導入

v3.0

詳細

ジオメトリのファセット間を移動できます。

C#構文

Facet Facet.Navigate( siNavigateComponentType in_siNavigate );

スクリプト構文

oReturn = Facet.Navigate( Navigation );

戻り値

Facet

パラメータ

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

VBScript の例

NewScene , false

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

set oFacet = oObj.ActivePrimitive.Geometry.Facets(3)

LogMessage "The first facet of this geometry is of index " & oFacet.Navigate(siFirstComponent).Index

LogMessage "The last facet of this geometry is of index " & oFacet.Navigate(siLastComponent).Index

LogMessage "The next facet of this geometry is of index " & oFacet.Navigate(siNextComponent).Index

LogMessage "The previous facet of this geometry is of index " & oFacet.Navigate(siPreviousComponent).Index

' Expected result:

'INFO : The first facet of this geometry is of index 0

'INFO : The last facet of this geometry is of index 5

'INFO : The next facet of this geometry is of index 4

'INFO : The previous facet of this geometry is of index 2

関連項目

SegmentCollection.Navigate Geometry.Facets