Class 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 );
source

https://github.com/mrdoob/three.js/blob/master/src/core/Face3.js

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(a: number, b: number, c: number, normal?: Vector3, color?: Color, materialIndex?: number): Face3

Parameters

  • a: number

    Vertex A index.

  • b: number

    Vertex B index.

  • c: number

    Vertex C index.

  • normal?: Vector3 optional

    Face normal or array of vertex normals.

  • color?: Color optional

    Face color or array of vertex colors.

  • materialIndex?: number optional

    Material index.

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