/** * 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 { AssignMode, BodyId, ViewMask } from '../types.js'; /** * Labels every candidate voxel whose (integer) grid position projects inside all view * polygons (per-polygon `inverted` honoured). Integer coordinates are used because the * rendered isosurface places grid index `i` at coordinate `i`. Returns the number of * voxels changed. */ export declare function assignPolygons(labels: Uint8Array, candidates: Int32Array, volume: Volume, masks: readonly ViewMask[], bodyId: BodyId, mode: AssignMode, ctx: RuntimeContext): Promise; /** Assigns every unassigned candidate voxel to `bodyId`; returns the number of voxels changed. */ export declare function assignRemainder(labels: Uint8Array, candidates: Int32Array, bodyId: BodyId): number; /** Number of voxels per label; index 0 counts unassigned voxels. */ export declare function countVoxels(labels: Uint8Array): Uint32Array; /** Number of candidate voxels not assigned to any body. */ export declare function countUnassigned(labels: Uint8Array, candidates: Int32Array): number;