N

Navigate (Facet)

Introduced

3.0

Description

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

Scripting Syntax

Facet.Navigate( Navigation )

C# Syntax

Facet Facet.Navigate( siNavigateComponentType in_siNavigate );

Parameters

Parameter

Type

Description

Navigation

siNavigateComponentType

Select the direction of navigation.

Return Value

Facet

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



Autodesk Softimage v7.5