Expand description
Marching Cubes isosurface extraction from volumetric grids.
Given a VolumetricGrid and an isovalue, produces a triangle mesh (vertices, normals, indices) suitable for WebGL/WebGPU rendering.
Structs§
- Dual
Phase Mesh - Dual-phase isosurface result for orbital visualization.
- Isosurface
Mesh - A triangle mesh extracted from an isosurface.
Functions§
- compute_
angle_ weighted_ normals - Compute angle-weighted vertex normals for smooth shading.
- flip_
normals_ outward - Ensure consistent outward-facing normal orientation.
- marching_
cubes - Extract an isosurface from a volumetric grid using Marching Cubes.
- marching_
cubes_ dual - Extract dual-phase isosurfaces (positive and negative lobes).
- mesh_
to_ interleaved - Export mesh data in WASM-ready format: interleaved position+normal Float32Arrays.
- simplify_
mesh - Mesh simplification: weld duplicate vertices and remove degenerate triangles.