3D Lingo Dictionary > T-Z > vertexList (mesh generator)

 

vertexList (mesh generator)

Syntax

member(whichCastmember).modelResource(whichModelResource).vertexList

Description

3D property; when used with a model resource whose type is #mesh, allows you to get or set the vertexList property for the model resource.

The vertexList is a linear list of each vertex used in the mesh. A single vertex may be shared by numerous faces of the mesh. You can specify a list of any size for this property, but it will only store the number of items specified when using the newMesh command to create the #mesh model resource.

Example

This statement sets the vertexList of the model resource named Triangle.

member("Shapes").modelResource("Triangle").vertexList = [vector(0,0,0), vector(20,0,0), vector(20, 20, 0)]

See also

newMesh, face, vertices