Expand description
CPU geometry algorithms that operate on viewport-lib-types payloads without
touching the GPU.
primitives: built-in meshes (cube, sphere, torus and the rest).mesh: operations on triangle meshes, including clip-plane caps and isolines.volume: regular scalar grids, marching cubes isosurfaces, and unstructured volume meshes.maths: small helpers such as ray/plane intersection.
Everything returns plain data, usually a
MeshData the renderer can
upload, but nothing here needs the renderer to run.
Modulesยง
- maths
- Small maths helpers.
- mesh
- Operations on triangle meshes: attribute expansion, tangents, validation, clip-plane caps and isolines.
- prelude
- The geometry entry points, in one glob import:
use viewport_lib_geometry::prelude::*;. - primitives
- Built-in mesh primitives. Every builder returns a Z-up
MeshDatacentred at the origin. - volume
- Volumetric data: scalar fields on a regular grid, the marching cubes isosurface extracted from one, and unstructured volume meshes.