
v3.0
指定された距離内にある、このエッジの各ポイントに隣接しているすべてのエッジを含む Edge オブジェクトのコレクションを戻します。
EdgeCollection Edge.GrowNeighborEdges( Int32 in_lDistance ); |
oReturn = Edge.GrowNeighborEdges( [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.GrowNeighborEdges
str = "Edges around Edge(" & Edge.index & ") are :"
for each n in oNeighbors
str = str & " " & n.index
next
logmessage str
next |