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