PolygonFace.NeighborEdges operator

導入

v3.0

詳細

指定された Distance 内にあるEdge近接のコレクションを戻します。Distance が 1 の場合、現在のPolygonFaceを形成するすべてのEdgeオブジェクトが反時計回りの順番で戻されます。

スクリプト 構文

oReturn = PolygonFace.NeighborEdges( [Distance] );

戻り値

EdgeCollection

パラメータ

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

デフォルト値: 1

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
for each Polygon in oGeometry.Polygons
        set oNeighbors = Polygon.NeighborEdges( 1 )
        str = "Edges neighbors of polygon( " & Polygon.index & ") are :"
        for each edge in oNeighbors
                str = str & " " & edge.index
        next
        logmessage str
next

関連項目

PolygonFaceCollection.NeighborEdges PolygonFace.NeighborVertices PolygonFace.NeighborPolygons PolygonFace.GrowNeighborPolygons