v3.0
ジオメトリのファセット間を移動できます。このメソッドは、コレクション内のコンポーネントごとに対応する単一ファセットを戻します。たとえば、5 つのファセットを持つ FacetCollection があり、方向が siLastComponent に設定されている状態でこのメソッドを呼び出すと、元の FacetCollection のうち、最終ファセットの 5 つのインスタンスを含むコレクションが戻されます。
FacetCollection FacetCollection.Navigate( siNavigateComponentType in_siNavigate ); |
oReturn = FacetCollection.Navigate( Navigation ); |
パラメータ | タイプ | 説明 |
---|---|---|
Navigation | siNavigateComponentType | 移動方向を選択します。 |
set oObj = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" ) set oSubComp = oObj.ActivePrimitive.Geometry.Facets(2).SubComponent oSubComp.AddElement(3) set oFacets = oSubComp.ComponentCollection set oFirstFacets = oFacets.Navigate(siFirstComponent) LogMessage "The associated first facets are " for each facet in oFirstFacets LogMessage facet.index & " " next set oLastFacets = oFacets.Navigate(siLastComponent) LogMessage "The associated last facets are " for each facet in oLastFacets LogMessage facet.index & " " next set oNextFacets = oFacets.Navigate(siNextComponent) LogMessage "The associated next facets are " for each facet in oNextFacets LogMessage facet.index & " " next set oPreviousFacets = oFacets.Navigate(siPreviousComponent) LogMessage "The associated previous facets are " for each facet in oPreviousFacets LogMessage facet.index & " " next |