
v3.0
指定された Distance 内にある、このコレクション内の各PolygonFaceの各Vertexに隣接しているすべてのポリゴンについての、PolygonFaceオブジェクトのコレクションを戻します。
oReturn = PolygonFaceCollection.GrowNeighborPolygons( [Distance] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| 距離 | Integer | Distance は整数値で、近接度を表わします(たとえば、あるポリゴンに対してdegree=2
とは、そのエッジに隣接するポリゴンに加えて、隣接するポリゴンに隣接するポリゴンを意味します)。
デフォルト値: 1 |
set oCube = ActiveSceneRoot.AddGeometry( "Cone", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oSubComponent = oGeometry.CreateSubComponent(siPolygonCluster,Array(1,2))
set oPolygons = oSubComponent.ComponentCollection
set oNeighborPolygons = oPolygons.GrowNeighborPolygons
str = "Polygons around the polygons 1 and 2 are :"
for each n in oNeighborPolygons
str = str & " " & n.index
next
logmessage str
|