UNPKG

@awayjs/scene

Version:
49 lines 1.73 kB
import { IMaterial, ElementsBase } from '@awayjs/renderer'; import { PrimitivePrefabBase } from '../prefabs/PrimitivePrefabBase'; /** * A UV Sphere primitive sprite. */ export declare class PrimitiveSpherePrefab extends PrimitivePrefabBase { private _radius; private _segmentsW; private _segmentsH; private _yUp; /** * The radius of the sphere. */ get radius(): number; set radius(value: number); /** * Defines the number of horizontal segments that make up the sphere. Defaults to 16. */ get segmentsW(): number; set segmentsW(value: number); /** * Defines the number of vertical segments that make up the sphere. Defaults to 12. */ get segmentsH(): number; set segmentsH(value: number); /** * Defines whether the sphere poles should lay on the Y-axis (true) or on the Z-axis (false). */ get yUp(): boolean; set yUp(value: boolean); /** * Creates a new Sphere object. * * @param radius The radius of the sphere. * @param segmentsW Defines the number of horizontal segments that make up the sphere. * @param segmentsH Defines the number of vertical segments that make up the sphere. * @param yUp Defines whether the sphere poles should lay on the Y-axis (true) or on the Z-axis (false). */ constructor(material?: IMaterial, elementsType?: string, radius?: number, segmentsW?: number, segmentsH?: number, yUp?: boolean); /** * @inheritDoc */ _pBuildGraphics(target: ElementsBase, elementsType: string): void; /** * @inheritDoc */ _pBuildUVs(target: ElementsBase, elementsType: string): void; } //# sourceMappingURL=PrimitiveSpherePrefab.d.ts.map