## FacetCollection.SubComponent

### Introduced

v3.0

### Description

Creates a SubComponent from the collection of Facets. This allows you to access the more collections that are more specific to the geometry type (PolygonFaceCollection and NurbsSurfaceCollection) via the SubComponent.ComponentCollection property.

### C# Syntax

    // get accessor
    SubComponent rtn = FacetCollection.SubComponent;

### Examples

#### VBScript Example

    set oObj = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
    set oSubComponent = oObj.ActivePrimitive.Geometry.Facets(1).SubComponent
    oSubComponent.AddElement 0
    set oFacetCollection = oSubComponent.ComponentCollection
    set oFacetCollection2 = oFacetCollection.Navigate(siNextComponent)
    SelectObj oFacetCollection2.SubComponent