[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

.[page:Integer a]

Vertex A index.

.[page:Integer b]

Vertex B index.

.[page:Integer c]

Vertex C index.

.[page:Vector3 normal]

Face normal.

.[page:Color color]

Face color.

.[page:Array vertexNormals]

Array of 3 vertex normals.

.[page:Array vertexColors]

Array of 3 vertex colors.

.[page:Array vertexTangents]

Array of 3 vertex tangents.

.[page:Integer materialIndex]

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

.[page:Vector3 centroid]

Face centroid.

Methods

.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]