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