User Guide
Primitives 339
Plane properties
Planes are the default Director primitive. Planes, whose
type property is #plane, are generated in
the xz plane with script. Plane properties can be modified or animated at runtime.
Mesh generator properties
The mesh generator is the most complex model resource. It allows experienced 3D programmers
to create complicated geometries at runtime.
The mesh generator primitive’s
type property is #mesh and is created by the member’s newMesh()
method. The parameters included with that method describe how large the mesh will be.
You can use the mesh deform modifier to manipulate vertex positions at runtime for
#mesh or any
other type of model resource. You can also use the
#mesh primitive to change mesh properties
directly, but this is usually not practical, because the mesh must be rebuilt mathematically after
each modification.
lengthVertices
Get and set Number of vertices along the length of the
box. Increasing the number of vertices
improves lighting effects.
2 or more. The default
is
4.
width
Vertices
Get and set Number of vertices along the width of the
box. Increasing the number of vertices
improves lighting effects.
2 or more. The default
is
4.
height
Vertices
Get and set Number of vertices along the height of the
box. Increasing the number of vertices
improves lighting effects.
2 or more. The default
is
4.
Property Access Description Value Range
width
Get and set Width of the plane Positive floating-point
value. The default is
1.0.
length
Get and set Length of the plane Positive floating-point
value. The default is
1.0.
length
Vertices
Get and set Number of vertices along the length of the
plane
2 or more. The default
is 2.
width
Vertices
Get and set Number of vertices along the width of the
plane
2 or more. The default
is 2.
Property Access Description Value Range