Parse any extrusion‑based G‑code file, convert the deposited filament to mass, center‑of‑mass and full inertia tensors, and explore the results in a WebAssembly (WASM) app built with Leptos.
TL;DR
cargo install trunktrunk serve→ open http://127.0.0.1:8080- Drag‑and‑drop a
.gcodefile and inspect mass / COM / inertia— both about the origin and the true COM.
- Robust Segment Model — generic
Segmenttrait withLineSeg&ArcSegimplementations.- TODO:
CubicSeg&BezierSeg?
- TODO:
- Extrusion‑aware Interpreter — handles absolute/relative axes (
G90/G91), extruder modes (M82/M83), and resets (G92). - Accurate Physics — all outputs in mm, g, g·mm²; correct parallel‑axis shift to the center of mass.
- Leptos WASM UI — instant client‑side parsing, no server; shows mass, COM,
I₀(origin) andIᴄᴏᴍ.
Made with Rust and Leptos.