mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-21 02:45:59 +10:00
23 lines
592 B
JavaScript
23 lines
592 B
JavaScript
/**
|
|
* @author mr.doob / http://mrdoob.com/
|
|
* @author alteredq / http://alteredqualia.com/
|
|
*/
|
|
|
|
THREE.Face3 = function ( a, b, c, normal, color, materials ) {
|
|
|
|
this.a = a;
|
|
this.b = b;
|
|
this.c = c;
|
|
|
|
this.normal = normal instanceof THREE.Vector3 ? normal : new THREE.Vector3();
|
|
this.vertexNormals = normal instanceof Array ? normal : [ ];
|
|
|
|
this.color = color instanceof THREE.Color ? color : new THREE.Color();
|
|
this.vertexColors = color instanceof Array ? color : [];
|
|
|
|
this.materials = materials instanceof Array ? materials : [ materials ];
|
|
|
|
this.centroid = new THREE.Vector3();
|
|
|
|
};
|