/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * @author Tadej Satler */ import { Volume } from '../../../../mol-model/volume.js'; import { RuntimeContext } from '../../../../mol-task/index.js'; import type { ViewMask } from '../types.js'; export interface MaskComputeParams { viewMasks: ViewMask[]; threshold: Volume.IsoValue; /** When true, skip the density threshold check (use polygons as purely spatial filter). */ skipThreshold?: boolean; /** When true, select voxels that are above threshold but OUTSIDE the polygon filters. */ invertPolygons?: boolean; } export declare function computeVolumeMask(volume: Volume, params: MaskComputeParams, ctx: RuntimeContext): Promise; /** * Mark all voxels within `radiusAngstrom` Å of any atom in `atomPositions`. * `atomPositions` is a flat Float32Array of world-space XYZ triplets. */ export declare function computeStructureMask(volume: Volume, atomPositions: Float32Array, radiusAngstrom: number): Uint8Array; export declare function buildMaskVolume(source: Volume, data: Uint8Array | Float32Array): Volume;