Cluster.CreateSubComponent

Description

Returns a SubComponent object which gives access to the components of the cluster according to its type. For example, if called on a complete edge cluster the returned SubComponent contains all the edges of the geometry.

C# Syntax

SubComponent Cluster.CreateSubComponent();

Scripting Syntax

oReturn = Cluster.CreateSubComponent();

Return Value

SubComponent

Examples

VBScript Example

'

' This example demonstrates how to get a SubComponent that 

' represents the polygons in a cluster

'

set oGrid = Application.ActiveProject.ActiveScene.Root.AddGeometry("Grid","MeshSurface")

set oCluster = oGrid.ActivePrimitive.Geometry.AddCluster(siPolygonCluster, "PolygonClusterOnGrid", array(59,60,61))

set oSubComponent = oCluster.CreateSubComponent

logmessage oSubComponent

'Output is:

'INFO : "grid3.poly[59-61]"

See Also

Geometry.CreateSubComponent SubComponent.ClusterType