|
@@ -1,19 +1,12 @@
|
|
|
-import { BufferGeometry } from '../core/BufferGeometry';
|
|
|
import { CylinderBufferGeometry } from './CylinderBufferGeometry';
|
|
|
|
|
|
-/*
|
|
|
+/**
|
|
|
* @author: abelnation / http://github.com/abelnation
|
|
|
*/
|
|
|
|
|
|
-function ConeBufferGeometry(
|
|
|
- radius, height,
|
|
|
- radialSegments, heightSegments,
|
|
|
- openEnded, thetaStart, thetaLength ) {
|
|
|
+function ConeBufferGeometry( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
|
|
|
|
|
|
- CylinderBufferGeometry.call( this,
|
|
|
- 0, radius, height,
|
|
|
- radialSegments, heightSegments,
|
|
|
- openEnded, thetaStart, thetaLength );
|
|
|
+ CylinderBufferGeometry.call( this, 0, radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
|
|
|
|
|
|
this.type = 'ConeBufferGeometry';
|
|
|
|
|
@@ -22,13 +15,14 @@ function ConeBufferGeometry(
|
|
|
height: height,
|
|
|
radialSegments: radialSegments,
|
|
|
heightSegments: heightSegments,
|
|
|
+ openEnded: openEnded,
|
|
|
thetaStart: thetaStart,
|
|
|
thetaLength: thetaLength
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
-ConeBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
|
|
|
+ConeBufferGeometry.prototype = Object.create( CylinderBufferGeometry.prototype );
|
|
|
ConeBufferGeometry.prototype.constructor = ConeBufferGeometry;
|
|
|
|
|
|
|