1234567891011121314151617181920212223242526272829 |
- /**
- * @author mr.doob / http://mrdoob.com/
- */
- THREE.Face4 = function ( a, b, c, d, normal, material ) {
- this.a = a;
- this.b = b;
- this.c = c;
- this.d = d;
- this.centroid = new THREE.Vector3();
- this.normal = normal instanceof THREE.Vector3 ? normal : new THREE.Vector3();
- this.vertexNormals = normal instanceof Array ? normal : [];
- this.material = material instanceof Array ? material : [ material ];
- };
- THREE.Face4.prototype = {
- toString: function () {
- return 'THREE.Face4 ( ' + this.a + ', ' + this.b + ', ' + this.c + ' ' + this.d + ' )';
- }
- }
|