v3.0
ReturnS a collection of Vertex objects for all vertices that are adjacent to each Facet of each Vertex in this collection, within the specified distance.
oReturn = VertexCollection.GrowNeighborVertices( [Distance] ); |
Parameter | Type | Description |
---|---|---|
Distance | Integer | Distance is an integer value representing the degree of
neighborhood (eg: degree=2 for a vertex means its adjacent vertices
plus the adjacent vertices of the adjacent vertices)
Default Value: 1 |
set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" ) set oGeometry = oCube.ActivePrimitive.Geometry set oVertices = oGeometry.Polygons(0).Vertices set oNeighborVertices = oVertices.GrowNeighborVertices str = "Vertices around the vertices of the polygon(0) are :" for each n in oNeighborVertices str = str & " " & n.index next logmessage str |