Facet.Navigate

Introduced

v3.0

Description

Allows you to navigate through the facets of the associated geometry.

C# Syntax

Facet Facet.Navigate( siNavigateComponentType in_siNavigate );

Scripting Syntax

oReturn = Facet.Navigate( Navigation );

Return Value

Facet

Parameters

Parameter Type Description
Navigation siNavigateComponentType Select the direction of navigation.

Examples

VBScript Example

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

See Also

SegmentCollection.Navigate Geometry.Facets