SubComponent.CreateCluster

Description

Creates a Cluster containing the subelements of the SubComponent.

C# Syntax

Cluster SubComponent.CreateCluster( String in_name );

Scripting Syntax

SubComponent.CreateCluster( Name );

Parameters

Parameter Type Description
Name String Name of the cluster that we are creating

Examples

VBScript Example

set oObject = Application.ActiveSceneRoot.AddGeometry("Cube","MeshSurface","MyCube")
set oSubComponent = oObject.ActivePrimitive.Geometry.CreateSubComponent(siVertexCluster, Array(3,4,5))
set oCluster = oSubComponent.CreateCluster()
if oCluster.Type = oSubComponent.ClusterType then
		Application.LogMessage "Expected Result"
end if