ConeGeometry.js 703 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @author abelnation / http://github.com/abelnation
  3. */
  4. THREE.ConeGeometry = function (
  5. radius, height,
  6. radialSegments, heightSegments,
  7. openEnded, thetaStart, thetaLength ) {
  8. THREE.CylinderGeometry.call( this,
  9. 0, radius, height,
  10. radialSegments, heightSegments,
  11. openEnded, thetaStart, thetaLength );
  12. this.type = 'ConeGeometry';
  13. this.parameters = {
  14. radius: radius,
  15. height: height,
  16. radialSegments: radialSegments,
  17. heightSegments: heightSegments,
  18. openEnded: openEnded,
  19. thetaStart: thetaStart,
  20. thetaLength: thetaLength
  21. };
  22. };
  23. THREE.ConeGeometry.prototype = Object.create( THREE.CylinderGeometry.prototype );
  24. THREE.ConeGeometry.prototype.constructor = THREE.ConeGeometry;