クラスタのタイプに応じて、クラスタのコンポーネントへのアクセスを提供するSubComponentオブジェクトを戻します。たとえば、コンプリートエッジクラスタに対して呼び出しを実行すると、ジオメトリのすべてのエッジを含む SubComponent が戻されます。
SubComponent Cluster.CreateSubComponent(); |
oReturn = Cluster.CreateSubComponent(); |
'
' This example demonstrates how to get a SubComponent that
' represents the polygons in a cluster
'
set oGrid = Application.ActiveProject.ActiveScene.Root.AddGeometry("Grid","MeshSurface")
set oCluster = oGrid.ActivePrimitive.Geometry.AddCluster(siPolygonCluster, "PolygonClusterOnGrid", array(59,60,61))
set oSubComponent = oCluster.CreateSubComponent
logmessage oSubComponent
'Output is:
'INFO : "grid3.poly[59-61]" |