Polygons (PolygonMesh) *

Description

Returns a PolygonFaceCollection containing each PolygonFace in the PolygonMesh.

C# Syntax

    // get accessor
    PolygonFaceCollection rtn = PolygonMesh.Polygons;

Examples

VBScript Example

    set oObject = Application.ActiveProject.ActiveScene.Root.AddGeometry("Cube","MeshSurface")
    set oPolygonMesh = oObject.ActivePrimitive.Geometry
    set oPolygonFaces = oPolygonMesh.Polygons
    for each oPolygonFace in oPolygonFaces
    logmessage "Index of the polygon: " & oPolygonFace.Index
    next

See Also

PolygonFace

Autodesk Softimage v7.5