## PointCollection.SubComponent

### Introduced

v3.0

### Description

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

### C# Syntax

    // get accessor

    SubComponent rtn = PointCollection.SubComponent;

### Examples

#### VBScript Example

    set oObj = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")

    set oPoints = oObj.ActivePrimitive.Geometry.Facets(3).Points

    logmessage oPoints.SubComponent