$ show leap71/PicoGK
PicoGK is a compact, open-source computational geometry kernel developed by LEAP 71 for engineering design and additive manufacturing. It provides a C# API over a high-performance native voxel engine (OpenVDB). The core abstraction is the Signed Distance Field (Voxels), supporting boolean operations, offsets, shells, lattice generation, implicit modeling, and meshing. It includes a robust 3D viewer, industry-standard IO (STL, VDB, CLI), and utilities for slicing and cross-section visualization. While primarily a library, its numerical core and debugging utilities carry a strong data-processing character.
The LLM identified 4 files worth highlighting for reuse:
Provides robust fuzzy comparison extensions (bAlmostEqual, bAlmostZero) for float, Vector2, Vector3, and Rad types. A pure static class with no internal dependencies, solving the fundamental geometry problem of epsilon-based floating equality. Ideal for reuse in any numerical or simulation library.
Defines the core 2D and 3D vector types (Vector2, Vector3, Vector2Int, Vector3Int) with full operator overloading, component-wise operations, and standard geometry methods. This is a well-crafted value-type foundation that decouples PicoGK's math from System.Numerics, making it a self-contained, reusable math library core.
Implements a comprehensive set of Penner easing equations (Quadratic, Cubic, Elastic, Bounce, etc.) with EaseIn, EaseOut, and EaseInOut variants. Pure static math with zero external dependencies. Can be directly extracted and used in any animation, UI, or procedural motion system.
Contains an abstract base and concrete implementations (LogProgress, ProgressCounter, SubProgress) for reconfigurable progress monitoring. Demonstrates a clean observer pattern idiom for instrumenting long-running operations without coupling to logging or UI. Reusable across different applications.