[name]

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

[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer 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

[property:Integer a]

Vertex A index.

[property:Integer b]

Vertex B index.

[property:Integer c]

Vertex C index.

[property:Vector3 normal]

Face normal.

[property:Color color]

Face color.

[property:Array vertexNormals]

Array of 3 vertex normals.

[property:Array vertexColors]

Array of 3 vertex colors.

[property:Integer materialIndex]

Material index (points to [page:MultiMaterial MultiMaterial.materials]).

Methods

[method:Face3 clone]()

Creates a new clone of the Face3 object.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]