/** * Copyright (c) 2018-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { ValueCell } from '../../../mol-util/index.js'; import { Mat4 } from '../../../mol-math/linear-algebra.js'; import { GroupMapping } from '../../util.js'; import { GeometryUtils } from '../geometry.js'; import { ParamDefinition as PD } from '../../../mol-util/param-definition.js'; import { Sphere3D } from '../../../mol-math/geometry.js'; /** Point cloud */ export interface Points { readonly kind: 'points'; /** Number of vertices in the point cloud */ pointCount: number; /** Center buffer as array of xyz values wrapped in a value cell */ readonly centerBuffer: ValueCell; /** Group buffer as array of group ids for each vertex wrapped in a value cell */ readonly groupBuffer: ValueCell; /** Bounding sphere of the points */ readonly boundingSphere: Sphere3D; /** Maps group ids to point indices */ readonly groupMapping: GroupMapping; setBoundingSphere(boundingSphere: Sphere3D): void; hasBoundingSphere(): boolean; } export declare namespace Points { function create(centers: Float32Array, groups: Float32Array, pointCount: number, points?: Points): Points; function createEmpty(points?: Points): Points; function transform(points: Points, t: Mat4): void; const StyleTypes: { square: string; circle: string; fuzzy: string; }; type StyleTypes = keyof typeof StyleTypes; const StyleTypeNames: StyleTypes[]; const Params: { sizeFactor: PD.Numeric; pointSizeAttenuation: PD.BooleanParam; pointStyle: PD.Select<"square" | "circle" | "fuzzy">; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }; type Params = typeof Params; const Utils: GeometryUtils; }