| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/3dweb/src/core/ |
Upload File : |
import { Vector3 } from './../math/Vector3';
import { Color } from './../math/Color';
/**
* Triangle face.
*
* @source https://github.com/mrdoob/three.js/blob/master/src/core/Face3.js
*/
export class Face3 {
/**
* @param a Vertex A index.
* @param b Vertex B index.
* @param c Vertex C index.
* @param normal Face normal or array of vertex normals.
* @param color Face color or array of vertex colors.
* @param materialIndex Material index.
*/
constructor(
a: number,
b: number,
c: number,
normal?: Vector3,
color?: Color,
materialIndex?: number
);
constructor(
a: number,
b: number,
c: number,
normal?: Vector3,
vertexColors?: Color[],
materialIndex?: number
);
constructor(
a: number,
b: number,
c: number,
vertexNormals?: Vector3[],
color?: Color,
materialIndex?: number
);
constructor(
a: number,
b: number,
c: number,
vertexNormals?: Vector3[],
vertexColors?: Color[],
materialIndex?: number
);
/**
* Vertex A index.
*/
a: number;
/**
* Vertex B index.
*/
b: number;
/**
* Vertex C index.
*/
c: number;
/**
* Face normal.
*/
normal: Vector3;
/**
* Array of 4 vertex normals.
*/
vertexNormals: Vector3[];
/**
* Face color.
*/
color: Color;
/**
* Array of 4 vertex normals.
*/
vertexColors: Color[];
/**
* Material index (points to {@link Geometry.materials}).
*/
materialIndex: number;
clone(): this;
copy( source: Face3 ): this;
}