VertexCollection.GrowNeighborVertices operator

導入

v3.0

詳細

指定された Distance 内にある、このコレクション内の各Vertexの各Facetに隣接しているすべての頂点について、Vertexオブジェクトのコレクションを戻します。

スクリプト 構文

oReturn = VertexCollection.GrowNeighborVertices( [Distance] );

戻り値

VertexCollection

パラメータ

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

デフォルト値: 1

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oVertices = oGeometry.Polygons(0).Vertices
set oNeighborVertices = oVertices.GrowNeighborVertices
str = "Vertices around the vertices of the polygon(0) are :"
for each n in oNeighborVertices
str = str & " " & n.index
next
logmessage str

関連項目

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