Face3

Triangle face.

Example

var normal = new THREE.Vector3( 0, 1, 0 ); var color = new THREE.Color( 0xffaa00 ); var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );

Constructor

Face3( a, b, c, normal, color, materialIndex )

a — Vertex A index.
b — Vertex B index.
c — Vertex C index.
normal — Face normal or array of vertex normals.
color — Face color or array of vertex colors.
materialIndex — Material index.

Properties

.a

Vertex A index.

.b

Vertex B index.

.c

Vertex C index.

.normal

Face normal.

.color

Face color.

.vertexNormals

Array of 3 vertex normals.

.vertexColors

Array of 3 vertex colors.

.materialIndex

Material index (points to MultiMaterial.materials).

Methods

.clone ()

Creates a new clone of the Face3 object.

Source

src/core/Face3.js
Edit