VertexCollection.NeighborVertices operator

導入

v3.0

詳細

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

C#構文

VertexCollection VertexCollection.NeighborVertices( Int32 in_lDistance );

スクリプト構文

oReturn = VertexCollection.NeighborVertices( [Distance] );

戻り値

VertexCollection

パラメータ

パラメータ タイプ 説明
Distance 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

set oNeighbors = oNeighborVertices.NeighborVertices

str = "Vertexs neighbors of this VertexCollection are :"

for each n in oNeighbors

str = str & " " & n.index

next

logmessage str

関連項目

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