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 operator IsEqualTo operator Navigate  
       

Properties

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

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