indicatrix_solid/lib.rs
1//! Pure-CPU solid rasterizer and 2D faceting diagram for a design's
2//! [`indicatrix::geometry::stone_metrics::SolidMesh`], independent of the GPU path
3//! tracer -- see this crate's own README for the full picture.
4//!
5//! [`raster`] is a pure-Rust rasterizer with its own unit tests. [`mesh_cache`]
6//! caches the `SolidMesh` build plus a one-time ring-simplification pass against
7//! the design's plane-set hash. [`facet_map`] maps a rasterized `facet_id` back to
8//! its tier/orbit-member for hover/click/selection and the critical-angle overlay;
9//! [`live_update`] decides which geometry to draw after an edit (`plan_preview`,
10//! a budgeted `resolve_dirty` with a pinned/fresh/stale/unsolvable outcome, driven
11//! by an injected [`live_update::Clock`] rather than `std::time::Instant`, which
12//! panics at runtime on `wasm32-unknown-unknown`); [`edges_layer`] is the "Both"
13//! view mode's transparent-fill, opaque-edges render; [`diagram2d`] is the
14//! GemCAD-style three-panel (crown/pavilion/profile) 2D faceting diagram, with its
15//! own per-pixel facet-picking buffer. [`pixel_font`] is the shared 5x7 bitmap
16//! font [`diagram2d`]'s panel labels draw with. [`preview`] is the frame pipeline
17//! on top of them (plan, resolve, rasterize, with hover/selection overlays), which
18//! the desktop's worker threads and the web app's main thread both drive.
19//!
20//! No GUI toolkit types, no threads, no filesystem access anywhere in this crate --
21//! every caller (the desktop editor, the wasm web app) converts the RGBA8 output to
22//! its own pixel-buffer type at its own boundary. The desktop's
23//! `apps/indicatrix-cut/src/gui/solid_preview` re-exports every module here at its
24//! old paths, plus keeps its own `preview_state` (worker thread), `diagram_wiring`
25//! (Slint callback wiring), and `to_pixel_buffer`/`to_diagram_pixel_buffer`
26//! conversions -- see this crate's README.
27
28pub mod diagram2d;
29pub mod edges_layer;
30pub mod facet_map;
31pub mod live_update;
32pub mod mesh_cache;
33pub mod pixel_font;
34pub mod preview;
35pub mod raster;