PolygonFaceCollection.NeighborEdges operator

導入

v3.0

詳細

指定された Distance 内にある近接 Edge のコレクションを戻します。

C#構文

EdgeCollection PolygonFaceCollection.NeighborEdges( Int32 in_lDistance );

スクリプト構文

oReturn = PolygonFaceCollection.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 oNeighborPolygons = oVertices(0).NeighborPolygons(1)

set oNeighbors = oNeighborPolygons.NeighborEdges( 1 )

str = "Edges neighbors of this PolygonFaceCollection are :"

for each edge in oNeighbors

		str = str & " " & edge.index

next

logmessage str

関連項目

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