3D Lingo Dictionary > L-N > lengthVertices

 

lengthVertices

Syntax

member(whichCastmember).modelResource(whichModelResource).lengthVertices

Description

3D #box and #plane model resource property; indicates the number of mesh vertices along the length of the box or plane. Increasing this value increases the number of faces, and therefore the fineness, of the mesh.

The length of a box is measured along its Z axis. The length of a plane is measured along its Y axis.

Set the renderStyle property of a model's shader to #wire to see the faces of the mesh of the model's resource. Set the renderStyle property to #point to see just the vertices of the mesh.

The value of this property must be greater than or equal to 2. The default value is 4.

Example

This statement sets the lengthVertices property of the model resource named Tower to 10. Nine triangles will be used to define the geometry of the model resource along its Y axis; therefore, there will be ten vertices.

member("3D World").modelResource("Tower").lengthVertices = 10

See also

length