GetNbTriangles

Description

Returns the number of triangles for a given object.

Scripting Syntax

    GetNbTriangles( [InputObjs] )

Parameters

Parameter | Type | Description
InputObjs [in/out] | String | List of objects. Default Value: Current selection

Return Value

Returns the number of triangles in the object as a Long.

Examples

VBScript Example

    newscene
    dim PolySphere, NurbsSphere
    PolySphere = CreatePrim( "Sphere", "MeshSurface" )
    NurbsSphere = CreatePrim( "Sphere", "NurbsSurface" )
    Translate NurbsSphere, -9.70854812193472, 0, 0, siRelative, siView, siObj, siXYZ

    LogMessage "Number of triangles on polygon mesh " & GetNbTriangles( PolySphere )
    LogMessage "Number of triangles on NURBS mesh " & GetNbTriangles( NurbsSphere )

Autodesk Softimage v7.5