DodecahedronGeometry.js 624 B

12345678910111213141516171819202122232425262728
  1. import { Geometry } from '../core/Geometry';
  2. import { DodecahedronBufferGeometry } from './DodecahedronBufferGeometry';
  3. /**
  4. * @author Abe Pazos / https://hamoid.com
  5. */
  6. function DodecahedronGeometry( radius, detail ) {
  7. Geometry.call( this );
  8. this.type = 'DodecahedronGeometry';
  9. this.parameters = {
  10. radius: radius,
  11. detail: detail
  12. };
  13. this.fromBufferGeometry( new DodecahedronBufferGeometry( radius, detail ) );
  14. this.mergeVertices();
  15. }
  16. DodecahedronGeometry.prototype = Object.create( Geometry.prototype );
  17. DodecahedronGeometry.prototype.constructor = DodecahedronGeometry;
  18. export { DodecahedronGeometry };