3D Lingo Dictionary > E-K > face

 

face

Syntax

member(whichCastmember).modelResource(whichModelResource).face.count
member(whichCastmember).modelResource(whichModelResource).face[index].colors
member(whichCastmember).modelResource(whichModelResource).face[index].normals
member(whichCastmember).modelResource(whichModelResource).face[index].shader
member(whichCastmember).modelResource(whichModelResource).face[index].textureCoordinates
member(whichCastmember).modelResource(whichModelResource).face[index].vertices
member(whichCastmember).model(whichModel).meshdeform.face.count
member(whichCastmember).model(whichModel).meshdeform.mesh[index].face.count
member(whichCastmember).model(whichModel).meshdeform.mesh[meshIndex].face[faceIndex]
member(whichCastmember).model(whichModel).meshdeform.mesh[meshIndex].face[faceIndex].neighbor{[neighborIndex]}

Description

3D #mesh model resource and meshdeform modifier property. All model resources are meshes composed of triangles. Each triangle is a face.

You can access the properties of the faces of model resources whose type is #mesh. Changes to any of these properties do not take effect until you call the build() command.

Note: For detailed information about the following properties, see the individual property entries.

count indicates the number of triangles in the mesh.

colors indicates which indices in the color list of the model resource to use for each of the vertices of the face.

normals indicates which indices in the normal list of the model resource to use for each of the vertices of the face.

shader identifies the shader used when the face is rendered.

textureCoordinates indicates which indices in the texture coordinate list of the model resource to use for each of the vertices of the face.

vertices indicates which indices in the vertex list of the model resource to use to define the face.

Please see the entry for meshDeform (modifier) for descriptions of its face properties.

See also

build(), newMesh, meshDeform (modifier)