Face3.js 427 B

123456789101112131415161718192021
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.Face3 = function (a, b, c, uv, normal, color) {
  5. this.a = a;
  6. this.b = b;
  7. this.c = c;
  8. this.normal = normal || new THREE.Vector3();
  9. this.screen = new THREE.Vector3();
  10. this.uv = uv || [ [0,0], [0,0], [0,0] ];
  11. this.color = color || new THREE.Color();
  12. this.toString = function () {
  13. return 'THREE.Face3 ( ' + this.a + ', ' + this.b + ', ' + this.c + ' )';
  14. }
  15. }
粤ICP备19079148号