UNPKG

@awayjs/scene

Version:
30 lines 1.13 kB
import { IMaterial } from '@awayjs/renderer'; import { PrimitiveCylinderPrefab } from '../prefabs/PrimitiveCylinderPrefab'; /** * A UV RegularPolygon primitive sprite. */ export declare class PrimitivePolygonPrefab extends PrimitiveCylinderPrefab { /** * The radius of the regular polygon. */ get radius(): number; set radius(value: number); /** * The number of sides of the regular polygon. */ get sides(): number; set sides(value: number); /** * The number of subdivisions from the edge to the center of the regular polygon. */ get subdivisions(): number; set subdivisions(value: number); /** * Creates a new RegularPolygon disc object. * @param radius The radius of the regular polygon * @param sides Defines the number of sides of the regular polygon. * @param yUp Defines whether the regular polygon should lay on the Y-axis (true) or on the Z-axis (false). */ constructor(material?: IMaterial, elementsType?: string, radius?: number, sides?: number, yUp?: boolean); } //# sourceMappingURL=PrimitivePolygonPrefab.d.ts.map