Meshes

Deborah Schmidt
Head of Helmholtz Imaging Support Unit, MDC Berlin
Sep 17, 2025
Slides available at https://ida-mdc.github.io/workshop-visualization/2-1_in-depth-meshes/

Converting voxel datasets into meshes

  • Fixed thresholds: Used to generate meshes by separating foreground from background using a set intensity threshold.
  • Content-based annotations: Create precise meshes by using annotated regions to define boundaries.
  • Machine learning & interactive labeling: Interactive tools combine user input with AI predictions to refine boundaries.

Converting voxel datasets into meshes

Marching Cubes

Marching cubes algorithm. Credit: Ryoshoru, Jmtrivial on Wikimedia, CC BY-SA 4.0

Marching cubes algorithm. Credit: Ryoshoru, Jmtrivial on Wikimedia, CC BY-SA 4.0

Converting volumetric datasets into meshes

Conversion scripts

  1. Install and activate environment (guide)
  2. Download Notebook voxel_rendering_napari.ipynb into workshop directory
  3. Type jupyter lab and press Enter
  4. Open Notebook from list of files on the left side
  5. Run Cells in the Notebooks one by one by pressing Shift and Enter

Mesh processing

Reducing mesh complexity

  • Decimation: A process to reduce the number of polygons in a mesh while maintaining the overall shape and detail.
  • Remeshing: Tools like MeshLab and Blender offer remeshing techniques that can optimize mesh topology for better performance.
  • LOD (Level of Detail): Use LOD techniques to switch between different levels of mesh complexity based on the viewer’s distance.

Rendering meshes

Rendering meshes with Blender