Face4.js 608 字节
Newer Older
M
Mr.doob 已提交
1 2
/**
 * @author mr.doob / http://mrdoob.com/
3
 * @author alteredq / http://alteredqualia.com/
M
Mr.doob 已提交
4 5
 */

6
THREE.Face4 = function ( a, b, c, d, normal, color, materials ) {
7

8
	this.a = a; 
M
Mr.doob 已提交
9 10 11
	this.b = b;
	this.c = c;
	this.d = d;
12

U
unknown 已提交
13
	this.normal = normal instanceof THREE.Vector3 ? normal : new THREE.Vector3();
M
Mr.doob 已提交
14
	this.vertexNormals = normal instanceof Array ? normal : [ ];
15

16 17
	this.color = color instanceof THREE.Color ? color : new THREE.Color();
	this.vertexColors = color instanceof Array ? color : [];
18

M
Mr.doob 已提交
19
	this.materials = materials instanceof Array ? materials : [ materials ];
20

21
	this.centroid = new THREE.Vector3();
22

M
Mr.doob 已提交
23
};