PointCollection.Navigate
 
 
 

PointCollection.Navigate

Introduced

v3.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.

C# Syntax

PointCollection PointCollection.Navigate( siNavigateComponentType in_siNavigate );

Scripting Syntax

oReturn = PointCollection.Navigate( Navigation );

Return Value

PointCollection

Parameters

Parameter Type Description
Navigation siNavigateComponentType Select the direction of navigation.

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