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 methods
constructor(a: number, b: number, c: number, normal?: Vector3, color?: Color, materialIndex?: number): Face3
Parameters
Returns
Face3
constructor(a: number, b: number, c: number, normal?: Vector3, vertexColors?: Color[], materialIndex?: number): Face3
Parameters
-
a: number
-
b: number
-
c: number
-
normal?: Vector3 optional
-
vertexColors?: Color[] optional
-
materialIndex?: number optional
Returns
Face3
constructor(a: number, b: number, c: number, vertexNormals?: Vector3[], color?: Color, materialIndex?: number): Face3
Parameters
-
a: number
-
b: number
-
c: number
-
vertexNormals?: Vector3[] optional
-
color?: Color optional
-
materialIndex?: number optional
Returns
Face3
constructor(a: number, b: number, c: number, vertexNormals?: Vector3[], vertexColors?: Color[], materialIndex?: number): Face3
Parameters
-
a: number
-
b: number
-
c: number
-
vertexNormals?: Vector3[] optional
-
vertexColors?: Color[] optional
-
materialIndex?: number optional
Returns
Face3
Properties
public a: number
Vertex A index.
public b: number
Vertex B index.
public c: number
Vertex C index.
public color: Color
Face color.
public materialIndex: number
Material index (points to {@link Geometry.materials}).
public normal: Vector3
Face normal.
public vertexColors: Color[]
Array of 4 vertex normals.
public vertexNormals: Vector3[]
Array of 4 vertex normals.
public vertexTangents: Array<number>
Array of 4 vertex tangets.
Methods
public clone(): Face3
Returns
Face3