
Returns a Long representing the index of the segment within the SegmentCollection returned by the Geometry.Segments property.
// get accessor Int32 rtn = Segment.Index; |
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
|