
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 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.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...