クラスタを、指定されたジオメトリインデックスについて検索し、対応するクラスタインデックスを戻します。
Int32 Cluster.FindIndex( Object vItem ); |
oLong = Cluster.FindIndex( Geometry index ); |
項目のクラスタインデックスを、Longとして戻します。項目が検出されない場合は -1 を 戻します。
| パラメータ | タイプ | 説明 |
|---|---|---|
| Geometry index | Integer | ジオメトリコンポーネントのインデックス |
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 |