EdgeCollection.NeighborEdges operator

導入

v3.0

詳細

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

C#構文

EdgeCollection EdgeCollection.NeighborEdges( Int32 in_lDistance );

スクリプト構文

oReturn = EdgeCollection.NeighborEdges( [Distance] );

戻り値

EdgeCollection

パラメータ

パラメータ タイプ 説明
Distance Integer Distance は整数値で、近接度を表わします(例:あるエッジに対してdegree=2 とは、そのエッジに隣接するエッジに加えて、隣接するエッジに隣接するエッジを意味します)。

デフォルト値: 1

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )

set oGeometry = oCube.ActivePrimitive.Geometry

set oVertices = oGeometry.Vertices

set oNeighborEdges = oVertices(0).NeighborEdges

set oNeighbors = oNeighborEdges.NeighborEdges

str = "Edges neighbors of this EdgeCollection are :"

for each n in oNeighbors

		str = str & " " & n.index

next

logmessage str

関連項目

Edge.NeighborEdges EdgeCollection.NeighborVertices EdgeCollection.NeighborPolygons EdgeCollection.GrowNeighborEdges