EdgeCollection.NeighborPolygons.1.vbs Example
Applies To
Description
This example demonstrates how to use the EdgeCollection.NeighborPolygons method.
Code
set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" ) set oGeometry = oCube.ActivePrimitive.Geometry set oPolygons = oGeometry.Polygons set oNeighborEdges = oPolygons(0).NeighborEdges(1) set oNeighborPolygons = oNeighborEdges.NeighborPolygons( 1 ) str = "Polygons neighbors of this EdgeCollection are :" for each n in oNeighborPolygons str = str & " " & n.index next logmessage str
Keywords
EdgeCollection NeighborPolygons
Autodesk Softimage 2011