MeshProxy

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Server Entity Scripts • Assignment Client Scripts

A mesh, such as returned by Entities.getMeshes or Model API functions.

Deprecated: Use the Graphics API instead.

Methods

Name Return Value Summary
getNumVertices number

Gets the number of vertices in the mesh.

getPos Vec3

Gets the position of a vertex in the mesh.

Method Details

getNumVertices( ) → {number}
Returns: Integer number of vertices in the mesh.

Gets the number of vertices in the mesh.

getPos( index ) → {Vec3}
Returns: Local position of the vertex relative to the mesh.

Gets the position of a vertex in the mesh.

Parameters

Name Type Description
index number

Integer index of the vertex.