What's New in Director 8.5 > Working with Models and Model Resources > Primitives > Mesh generator commands

 

Mesh generator commands

Use these commands to work with mesh primitives:

Command

Description

Returns

build()

Builds the mesh according to the current property values. (The mesh construction properties specified in the previous table have no effect until build() is called.)

Generates a Lingo error if any properties specify an invalid list.

Nothing

generateNormals(style)

Generates a new normal for every vertex in every triangle. The style parameter can be #flat, so that each triangle is clearly delineated, or #smooth. The command assumes that all triangles were specified in a clockwise order.

Nothing