## GetNbTriangles

### Description

Returns the number of triangles for a given object.

### Scripting Syntax

    oLong = GetNbTriangles( [InputObjs] );

### Return Value

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

### Parameters

Parameter | Type | Description
--- | --- | ---
InputObjs | String | List of objects. Default Value: Current selection

### 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 )