/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * @author Tadej Satler * * Reading a per-voxel label array from isosurface vertex positions — shared by the color * themes of the volume tools. */ import { Vec3 } from '../../mol-math/linear-algebra.js'; import { Volume } from '../../mol-model/volume.js'; /** * Maps a world position to the label of the densest corner of the grid cell containing it. * Isosurface vertices lie on cell edges between an inside and an outside voxel, so taking the * densest corner always picks the inside voxel and surfaces are colored without speckle. */ export declare function makeLabelAtPosition(volume: Volume, labels: Uint8Array): (position: Vec3) => number;