/** * @ignore */ export class MeshSector { /** * @param {AppBase} app - The application instance. * @param {Layer} layer - The layer to draw the sector on. * @param {object} [args] - The arguments object. * @param {number} [args.segments] - The number of segments of the arc. */ constructor(app: AppBase, layer: Layer, args?: { segments?: number; }); /** * @type {ShaderMaterial} * @private */ private _material; /** * @type {Mesh} * @private */ private _mesh; /** * @type {Float32Array} * @private */ private _positions; /** * @type {number} * @private */ private _segments; /** * @type {Entity} */ entity: Entity; /** * Draw a filled arc around an axis, starting at a point and sweeping by an angle. * * @param {Vec3} center - The center of the sector. * @param {Vec3} start - The offset from the center to the start of the arc. * @param {Vec3} axis - The normalized axis to sweep around. * @param {number} from - The angle to start the arc at, in degrees. * @param {number} sweep - The angle to sweep by, in degrees. * @param {number} scale - The scale of the sector. * @param {Color} color - The color of the sector. */ draw(center: Vec3, start: Vec3, axis: Vec3, from: number, sweep: number, scale: number, color: Color): void; destroy(): void; } import { Entity } from '../../../framework/entity.js'; import { Vec3 } from '../../../core/math/vec3.js'; import type { Color } from '../../../core/math/color.js'; import type { AppBase } from '../../../framework/app-base.js'; import type { Layer } from '../../../scene/layer.js';