
v3.0
oReturn = Vertex.GrowNeighborVertices( [Distance] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| 距離 | Integer | Distance は整数値で、近接度を表わします(たとえば、ある頂点に対してdegree=2
とは、その頂点に隣接する頂点に加えて、隣接する頂点に隣接する頂点を意味します)。
デフォルト値: 1 |
set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
for each Vertex in oGeometry.Vertices
set oNeighbors = Vertex.GrowNeighborVertices
str = "Vertices around Vertex(" & Vertex.index & ") are :"
for each n in oNeighbors
str = str & " " & n.index
next
logmessage str
next
|