Segment.Samples
 
 
 

Segment.Samples operator

Description

Returns a SampleCollection containing each Sample object for this segment.

Note: This property returns a SampleCollection, not an IDispatch object, which means that it will not give you access to the Segment methods and properties, only the methods and properties that are available on Sample objects.

C# Syntax

// get accessor
SampleCollection rtn = Segment.Samples;

Examples

VBScript Example

set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
set oSegments = oCube.ActivePrimitive.Geometry.Segments
set oSamples = oSegments(1).Samples
str = "The sample indices for Segment(1) of this geometry are: "
for each oSample in oSamples
        str = str & " " & oSample.Index
next

See Also

Geometry.Samples Geometry.Segments