var obj = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" );
var segment = obj.ActivePrimitive.Geometry.Segments(7);
LogMessage( "The first segment of this geometry is of index " + segment.Navigate(siFirstComponent).Index );
LogMessage( "The last segment of this geometry is of index " + segment.Navigate(siLastComponent).Index );
LogMessage( "The next segment is of index " + segment.Navigate(siNextComponent).Index );
LogMessage( "The previous segment is of index " + segment.Navigate(siPreviousComponent).Index );
// Expected result:
//INFO : The first segment of this geometry is of index 0
//INFO : The last segment of this geometry is of index 11
//INFO : The next segment is of index 8
//INFO : The previous segment is of index 6
|