GrowNeighborPolygons (PolygonFace) *

Introduced

3.0

Description

Returns a collection of PolygonFace objects for all polygons that are adjacent to each Vertex in this PolygonFace, within a given distance.

Scripting Syntax

PolygonFace.GrowNeighborPolygons( [Distance] )

C# Syntax

PolygonFaceCollection PolygonFace.GrowNeighborPolygons( Int32 in_lDistance );

Parameters

Parameter

Type

Description

Distance

Integer

Distance is an integer value representing the degree of neighborhood (eg: degree=2 for a polygon means its adjacent polygons plus the adjacent polygons of the adjacent polygons)

Default Value: 1

Return Value

PolygonFaceCollection

Examples

VBScript Example

set oCube = ActiveSceneRoot.AddGeometry( "Cone", "MeshSurface" )
set oGeometry = oCube.ActivePrimitive.Geometry
set oPolygons = oGeometry.Polygons(0)
set oNeighborPolygons = oPolygons.GrowNeighborPolygons
str = "Polygons around the polygon(0) are :"
for each n in oNeighborPolygons
   str = str & " " & n.index
next
logmessage str

See Also

PolygonFace.NeighborVertices

PolygonFace.NeighborEdges

PolygonFace.NeighborPolygons

PolygonFaceCollection.GrowNeighborPolygons



Autodesk Softimage v7.5