## Sample

Object Hierarchy | Related C++ Class: Sample

### Inheritance

SIObject

Sample

### Introduced

v2.0

### Description

A Sample is a generic object used to access a PolygonNode (PolygonMesh) or NurbsSample (NurbsSurfaceMesh or NurbsCurveList). Having a generic object allows you to write code to traverse an object's geometry without resorting to special case handling for specific geometry types.

### Methods

IsClassOf | IsEqualTo | Navigate |

### Properties

Application | Categories | FullName | Help
Index | Name | NestedObjects | Origin
OriginPath | Parent | SubComponent | Type

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
    set oSamples = oCube.ActivePrimitive.Geometry.Samples
    for each sample in oSamples
            LogMessage sample.index
    next

### See Also

Facet.Samples Segment.Samples Point.Samples Geometry.Samples SampleCollection