Surface-constrained geodesic distance and sensor-to-mesh projection helpers. More...
#include "../disp3D_global.h"#include <fiff/fiff_evoked.h>#include <atomic>#include <limits>#include <functional>#include <QSharedPointer>#include <QVector>#include <vector>#include <Eigen/Core>#include <Eigen/Sparse>

Go to the source code of this file.
Classes | |
| class | DISP3DLIB::GeometryInfo |
| This class holds static methods for sensor-to-mesh mapping and surface constrained distance calculation on a mesh. More... | |
Namespaces | |
| namespace | DISP3DLIB |
| 3-D brain visualisation using the Qt RHI rendering backend. | |
Macros | |
| #define | FLOAT_INFINITY std::numeric_limits<float>::infinity() |
Surface-constrained geodesic distance and sensor-to-mesh projection helpers.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
GeometryInfo provides the geometric kernels that drive every smooth source / sensor overlay in disp3D. scdc runs a multi-source Dijkstra on the surface adjacency graph to compute geodesic (surface-constrained) distances from a set of seed vertices to all vertices on the mesh; the result is used by Interpolation to build a sparse weight matrix that propagates source / sensor values across the cortex without crossing sulci.
scdcInterpolationMat fuses the Dijkstra pass and the weight-matrix construction so the dense distance table is never materialised — essential for high-resolution ico-5 source spaces where the dense table would exceed several gigabytes.
projectSensors performs Euclidean nearest-vertex projection for MEG / EEG sensors onto the head or helmet mesh; filterBadChannels prunes columns of the distance table for channels marked bad in the FIFFLIB::FiffInfo.
Definition in file geometryinfo.h.
| #define FLOAT_INFINITY std::numeric_limits<float>::infinity() |
Definition at line 71 of file geometryinfo.h.