Face3.js 378 B

1234567891011121314151617
  1. THREE.Face3 = function (a, b, c, uv, normal, color) {
  2. this.a = a;
  3. this.b = b;
  4. this.c = c;
  5. this.normal = normal || new THREE.Vector3();
  6. this.screen = new THREE.Vector3();
  7. this.uv = uv || [ [0,0], [0,0], [0,0] ];
  8. this.color = color || new THREE.Color();
  9. this.toString = function () {
  10. return 'THREE.Face3 ( ' + this.a + ', ' + this.b + ', ' + this.c + ' )';
  11. }
  12. }