Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/core/Face3.d.ts>Face3

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Face3
import { Face3 } from "https://deno.land/x/threejs_4_deno@v121/src/core/Face3.d.ts";

Triangle face.

Constructors

new
Face3(
a: number,
b: number,
c: number,
normal?: Vector3,
color?: Color,
materialIndex?: number,
)
new
Face3(
a: number,
b: number,
c: number,
normal?: Vector3,
vertexColors?: Color[],
materialIndex?: number,
)
new
Face3(
a: number,
b: number,
c: number,
vertexNormals?: Vector3[],
color?: Color,
materialIndex?: number,
)
new
Face3(
a: number,
b: number,
c: number,
vertexNormals?: Vector3[],
vertexColors?: Color[],
materialIndex?: number,
)

Properties

a: number

Vertex A index.

b: number

Vertex B index.

c: number

Vertex C index.

color: Color

Face color.

materialIndex: number

Material index (points to Mesh.material).

normal: Vector3

Face normal.

vertexColors: Color[]

Array of 3 vertex colors.

vertexNormals: Vector3[]

Array of 3 vertex normals.

Methods

clone(): this
copy(source: Face3): this