Aztec Script Reference

AztecMesh Class

Summary

Class used to hold and manipulate a mesh within Aztec.

Methods

     The table below summarizes the methods of AztecMesh
MethodDescription
addVertex(v)Add the vertex v to the mesh.  v must be of type AztecVector
addVertsAndTriangles(v, t)Add the array of vertices and array of triangles to the mesh. v must be an array with elements of type AztecVector.  t must be an array with elements of type AztecTriangle
addTriangle(t)Add the triangle t to the mesh.  t must be of type AztecTriangle.
calculateNormals()Compute smoothing normals for the mesh.
centerMesh()Set the center point of the mesh (where the translate tool will be located) to the average value of all vertices.
collapseVertices(v)Remove redundant vertices - collapsing multiple vertices into a single one.
extrudeFaces()TBD
flipNormals()Flip all normal values to the opposite direction
getTriangle(i)Get triangle number "i" from the mesh.  The type of the returned triangle will be an AztecTriangle.
getVertex(v)Get vertex number "i" from the mesh.  The type of the returned vertex will be an AztecVertex.
scaleMesh(s)Scale the mesh in all directions by s
weldVertices(v)TBD

Properties

     The table below summarizes the properties of AztecMesh
PropertyDescription
numVertsNumber of vertices in the mesh
numTrisNumber of triangles in the mesh

Description

Class providing a reflection of the internal MMesh class into JavaScript.

Example

How to use...
     TBD

See Also

Groups [ Class ]
Documents [ LXR ID Search ]
Entries [ AztecTriangle | AztecVector3 | AztecVertex ]

This page was generated by APIDOC