
v3.0
指定された Distance 内にあるPolygonFace近接のコレクションを戻します。Distance が 1 の場合、現在のPolygonFaceでEdgeを共有するすべてのPolygonFaceオブジェクトが、反時計回りの順番で戻されます。
oReturn = PolygonFace.NeighborPolygons( [Distance] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| 距離 | Integer | Distance は整数値で、近接度を表わします(たとえば、あるポリゴンに対してdegree=2
とは、そのエッジに隣接するポリゴンに加えて、隣接するポリゴンに隣接するポリゴンを意味します)。
デフォルト値: 1 |
set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
for each Polygon in oGeometry.Polygons
set oNeighbors = Polygon.NeighborPolygons( 1 )
str = "PolygonFaces neighbors of face( " & Polygon.index & ") are :"
for each neighborPolygon in oNeighbors
str = str & " " & neighborPolygon.index
next
logmessage str
next
|