
v3.0
指定された Distance 内にあるすべての近接頂点のVertexオブジェクトのコレクションを戻します。
oReturn = PolygonFaceCollection.NeighborVertices( [Distance] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| 距離 | Integer | Distance は整数値で、近接度を表わします(たとえば、あるポリゴンに対してdegree=2
とは、その頂点に隣接する頂点に加えて、隣接するポリゴンに隣接する頂点を意味します)。
デフォルト値: 1 |
set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oVertices = oGeometry.Vertices
set oNeighborPolygons = oVertices(0).NeighborPolygons(1)
set oNeighbors = oNeighborPolygons.NeighborVertices( 1 )
str = "Vertices neighbors of this PolygonFaceCollection are :"
for each vertex in oNeighbors
str = str & " " & vertex.index
next
logmessage str
|