MeshProxy

Description

A handle for a mesh in an entity, such as returned by Entities.getMeshes.

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

Constructor
new MeshProxy( )

Deprecated: Use the Graphics API instead.

Methods

Name Return Value Summary
getNumVertices number Get the number of vertices in the mesh.

Deprecated: Use the Graphics API instead.

getPos Vec3 Get the position of a vertex in the mesh.

Deprecated: Use the Graphics API instead.

Method Details

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

Get the number of vertices in the mesh.

Deprecated: Use the Graphics API instead.

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

Get the position of a vertex in the mesh.

Deprecated: Use the Graphics API instead.

Parameters

Name Type Description
index number Integer index of the mesh vertex.