User Guide

892 Chapter 14: Properties
normalList
Usage
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.
For more information on face normals and vertex normals, see the
normals entry.
Example
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)
normals
Usage
member(whichCastmember).modelResource(whichModelResource).\
face[index].normals
Usage
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 vertexs
normal in the model resources
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.