3D Lingo Dictionary > L-N > normalList

 

normalList

Syntax

member(whichCastmember).modelResource(whichModelResource).normalList
model.meshDeform.mesh[index].normalList

Description

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

The normalList property is a linear list of vectors from which you may specify vertex normals when building the faces of your mesh.

This property must be set to a list of exactly the number of vectors specified in the newMesh call.

Alternately, the normalList property may be generated for you by the generateNormals() method of mesh model resources.

In the context of the meshDeform modifier, the normalList property is similarly a linear list of vectors from which you may specify vertex normals when deforming your mesh.

See the normals entry for more information on face normals and vertex normals.

Examples

put member(5,2).modelResource("mesh square").normalList
-- [vector(0,0,1)]
member(2).modelResource("mesh3").normalList[2] = vector(205.0000, -300.0000, 27.0000)

See also

face, meshDeform (modifier)