Index (Segment) *

Description

Returns a Long representing the index of the segment within the SegmentCollection returned by the Geometry.Segments property.

C# Syntax

    // get accessor
    Int32 rtn = Segment.Index;

Examples

VBScript Example

    set oRoot = Application.ActiveProject.ActiveScene.Root
    set oObj = oRoot.AddGeometry( "Cube", "MeshSurface" )
    set oGeometry = oObj.ActivePrimitive.Geometry

    for each oSegment in oGeometry.Segments
       LogMessage "Geometry.Segment[" & oSegment.Index & "].Index = " & oSegment.Index
    next

Autodesk Softimage v7.5