Searches the cluster for the specified geometry index and returns the corresponding cluster index.
oLong = Cluster.FindIndex( Geometry index ); |
Returns the cluster index of the item as a Long, or returns -1 if the item is not found.
Parameter | Type | Description |
---|---|---|
Geometry index | Integer | Geometry component index. |
set oGrid = ActiveSceneRoot.AddGeometry("Grid","MeshSurface") set oCluster = oGrid.ActivePrimitive.Geometry.AddCluster( siVertexCluster, "PointClusterOnGrid", array(0,3,9)) for each oPnt in oGrid.ActivePrimitive.Geometry.Polygons(0).Points indice = oCluster.FindIndex(oPnt.Index) LogMessage "Cluster index for geometry index " & oPnt.Index & " is : " & indice next |