Geometry.AddEmptyCluster
 
 
 

Geometry.AddEmptyCluster

Description

Creates and adds an empty cluster to Geometry object.

C# Syntax

Cluster Geometry.AddEmptyCluster( String in_Type, String in_name );

Scripting Syntax

oReturn = Geometry.AddEmptyCluster( Type, [Name] );

Return Value

Cluster

Parameters

Parameter Type Description
Type ClusterTypes cluster type
Name String cluster name. When non-specified, the name will be the cluster type.

Examples

VBScript Example

set oGrid = Application.ActiveProject.ActiveScene.Root.AddGeometry("Grid","MeshSurface")
set oCluster = oGrid.ActivePrimitive.Geometry.AddEmptyCluster(  siPolygonCluster ) 
set oCluster2 = oGrid.ActivePrimitive.Geometry.AddEmptyCluster(  siEdgeCluster, "MyCluster" )