## Facet.Samples

### Introduced

v2.0

### Description

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

### C# Syntax

    // get accessor
    SampleCollection rtn = Facet.Samples;

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
    set oFacets = oCube.ActivePrimitive.Geometry.Facets
    set oSamples = oFacets(1).samples
    str = "The sample indices for Facet(1) of this geometry are: "
    for each oSample in oSamples
            str = str & " " & oSample.Index
    next
    LogMessage str

### See Also

Geometry.Samples Geometry.Facets