GrowNeighborVertices (VertexCollection) *
Introduced
3.0
Description
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.
Scripting Syntax
VertexCollection.GrowNeighborVertices( [Distance] )
C# Syntax
VertexCollection VertexCollection.GrowNeighborVertices( Int32 in_lDistance );Parameters
|
Parameter |
Type |
Description |
|
Distance |
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 |
Return Value
Examples
VBScript Example
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 strSee Also
Autodesk Softimage v7.5