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