BREP_topology 0.30.0

Rust B-rep CAD kernel (next.BREP.io): topology layer: B-rep solids, validation, soundness, classification, mass properties and tessellation.
Documentation

BREP_topology

Part of the next.BREP.io Rust B-rep kernel: cargo add BREP_topology · licence summary

BREP_topology holds the topology layer of the BREP kernel: B-rep solids and what reads them. Its Rust library target is brep_topology; this is version 0.30.0.

It is one of the implementation crates the kernel is built from. Applications should depend on BREP_kernel, which re-exports the public API of every kernel crate at its root (brep_kernel::…) and adds the feature pipeline and the STEP, IGES, Parasolid (import), 3MF, GLB, STL and OBJ exchange. Many items here are public only so the other kernel crates can reach them; those are hidden from the documentation and carry no stability promise beyond the kernel's own. The kernel crates are released together, at one version.

It contains:

  • the B-rep records (BrepSolid and its vertices, edges, coedges, loops, faces and shells) and their arena and serialized form;
  • structural and geometric validation and the soundness checks;
  • primitive solids (box, cylinder, cone, sphere, torus) and affine transforms, recentring and rescaling;
  • mass properties integrated from the B-rep;
  • tessellation, including the watertight display mesh, and mesh welding;
  • point-in-solid and pair classification;
  • entity tolerances, canonical carriers, edge sub-curves, orientation and face names.

Kernel crates it requires: BREP_RANSAC, BREP_geometry. It is required by BREP_surface_offset, BREP_boolean, BREP_solvers, BREP_construction, BREP_blend, BREP_offset, BREP_direct_edit, BREP_kernel.

Building

The crate builds natively and for wasm32-unknown-unknown. The parallel feature runs some per-face loops on rayon; profile-wall turns on a diagnostic wall-time partition. Both are off by default, and BREP_kernel forwards them.

The packaged crate ships the library sources, the README, the licence and the manifest; it carries no test suite.

Licence

In plain words: the crates are free to use as they are, including in a commercial project. If you fix or change something in the kernel, send the change back as a pull request to github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL. If you do not want to share your changes, buy a commercial licence from Autodrop3d LLC; with it you never have to share your code back.

The exact terms are in LICENSE.md, shipped in the crate (license-file in the manifest) and at LICENSE.md; if this summary and the file ever differ, the file wins.