springrep 0.1.0

An exact boundary-representation geometry kernel, in safe Rust
Documentation
  • Coverage
  • 53.03%
    368 out of 694 items documented0 out of 289 items with examples
  • Size
  • Source code size: 3.0 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 11.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • springcraft-ai/springrep
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cmbartschat

springrep

An exact boundary-representation geometry kernel, in safe Rust with no dependencies.

Overview

Solids are exact analytic and swept surfaces bounded by curves, held in a typed arena (src/topo/). Sweeps (src/sweep.rs) build solids from planar profiles (src/profile.rs), booleans (src/boolean/) combine them, and chamfers and fillets (src/blend.rs) sew swept blend faces into the solid, or cut and add the swept blend region where sewing cannot close it. A profile swept along a helix is screwed about its axis (src/sweep/helix.rs), and shells and drafts move planar faces onto new planes (src/edit/tweak.rs). STEP AP214 comes in and goes out through src/step/. Every result passes the validity checker (src/check.rs) or comes back as an error. Area, volume, mass properties and box come from the exact geometry (src/measure.rs), as do closest distances (src/distance.rs) and rays' crossings of faces (src/rays.rs); meshes are watertight by construction (src/mesh/). Every face carries the names of the operations that made it (src/topo/names.rs).

Usage

cargo test -p springrep          # fast unit tests only

Additional Information

See doc/intro.md.

springrep is under the MIT licence: LICENSE. It has no dependencies.