435
This statement shows the value of the vector ThisVector before and after being normalized.
ThisVector = vector(-50.0000, 0.0000, 0.0000)
normalize(ThisVector)
put ThisVector
-- vector(-1.0000, 0.0000, 0.0000)
See also
getNormalized
,
randomVector
,
magnitude
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.
For more information on face normals and vertex normals, see the
normals
entry.
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)
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.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...