Creates and adds an empty cluster to Geometry object.
Cluster Geometry.AddEmptyCluster( String in_Type, String in_name ); |
oReturn = Geometry.AddEmptyCluster( Type, [Name] ); |
Parameter | Type | Description |
---|---|---|
Type | ClusterTypes | cluster type |
Name | String | cluster name. When non-specified, the name will be the cluster type. |
set oGrid = Application.ActiveProject.ActiveScene.Root.AddGeometry("Grid","MeshSurface") set oCluster = oGrid.ActivePrimitive.Geometry.AddEmptyCluster( siPolygonCluster ) set oCluster2 = oGrid.ActivePrimitive.Geometry.AddEmptyCluster( siEdgeCluster, "MyCluster" ) |