Navigate (PointCollection)

Introduced

3.0

Description

Allows you to navigate through the points of the associated geometry. The method will return a corresponding point for each component in the collection.

Scripting Syntax

PointCollection.Navigate( Navigation )

C# Syntax

PointCollection PointCollection.Navigate( siNavigateComponentType in_siNavigate );

Parameters

Parameter

Type

Description

Navigation

siNavigateComponentType

Select the direction of navigation.

Return Value

PointCollection

Examples

VBScript Example

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

See Also

Point.Navigate

Geometry.Points



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index