EdgeCollection.GrowNeighborEdges operator

導入

v3.0

詳細

指定された Distance 内にある、このコレクション内の各Edgeの各ポイントに隣接しているすべてのエッジを含むEdgeオブジェクトのコレクションを戻します。

スクリプト 構文

oReturn = EdgeCollection.GrowNeighborEdges( [Distance] );

戻り値

EdgeCollection

パラメータ

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

デフォルト値: 1

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oEdges = oGeometry.Polygons(0).Edges
set oNeighborEdges = oEdges.GrowNeighborEdges
str = "Edges around the edges of the polygon(0) are :"
for each n in oNeighborEdges
                str = str & " " & n.index
next
logmessage str

関連項目

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