VertexCollection.NeighborPolygons operator

導入

v3.0

詳細

指定された Distance 内にあるすべての隣接ポリゴンのPolygonFaceオブジェクトのコレクションを戻します。

スクリプト 構文

oReturn = VertexCollection.NeighborPolygons( [Distance] );

戻り値

PolygonFaceCollection

パラメータ

パラメータ タイプ 詳細
距離 Integer Distance は整数値で、近接度を表わします(たとえば、ある頂点に対してdegree=2 とは、そのエッジに隣接するポリゴンに加えて、隣接するポリゴンに隣接するポリゴンを意味します)。

デフォルト値: 1

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oPolygons = oGeometry.Polygons
set oNeighborVertices = oPolygons(0).NeighborVertices(1)
set oNeighbors = oNeighborVertices.NeighborPolygons
str = "Polygons neighbors of this VertexCollection are :"
for each n in oNeighbors
str = str & " " & n.index
next
logmessage str

関連項目

Vertex.NeighborPolygons VertexCollection.NeighborEdges VertexCollection.NeighborPolygons VertexCollection.GrowNeighborVertices