3D Lingo Dictionary > L-N > normals

 

normals

Syntax

member(whichCastmember).modelResource(whichModelResource).face[index].normals

Syntax

3D face property; for model resources whose type is #mesh (created using the newMesh command) this property allows you to get and set the list of normal vectors used by the face specified by the index parameter.

Set this property to a linear list of integers corresponding to the index position of each vertex's normal in the model resource's normalList property.

This property must be set to the same length as the face[index].verticies list, or it can be an empty list [ ].

Do not set any value for this property if you are going to generate normal vectors using the generateNormals() command.

If you make changes to this property, or a use the generateNormals() command, you need to call the build() command in order to rebuild the mesh.

Example

This statement sets the normals property of the fifth face of the model resource named Player to a list of integer values.

member("3D").modelResource("Player").face[5].normals = [2,32,14]

See also

face, normalList, vertices