| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { Geometry } from './../core/Geometry';
- export class SphereGeometry extends Geometry {
- /**
- * @param [radius=50] — sphere radius. Default is 50.
- * @param [widthSegments=8] — number of horizontal segments. Minimum value is 3, and the default is 8.
- * @param [heightSegments=6] — number of vertical segments. Minimum value is 2, and the default is 6.
- * @param [phiStart=0] — specify horizontal starting angle. Default is 0.
- * @param [phiLength=Math.PI * 2] — specify horizontal sweep angle size. Default is Math.PI * 2.
- * @param [thetaStart=0] — specify vertical starting angle. Default is 0.
- * @param [thetaLength=Math.PI * 2] — specify vertical sweep angle size. Default is Math.PI.
- */
- constructor(
- radius?: number,
- widthSegments?: number,
- heightSegments?: number,
- phiStart?: number,
- phiLength?: number,
- thetaStart?: number,
- thetaLength?: number
- );
- /**
- * @default 'SphereGeometry'
- */
- type: string;
- parameters: {
- radius: number;
- widthSegments: number;
- heightSegments: number;
- phiStart: number;
- phiLength: number;
- thetaStart: number;
- thetaLength: number;
- };
- }
|