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