Expand description
Surface offsets of the BREP kernel: offset carriers, trims, regularity and fold loci.
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:
- offset carriers of analytic and NURBS faces;
- re-trimming and re-intersecting offset faces;
- regularity checks, fold loci and carving of the parts an offset folds over.
Kernel crates it requires: BREP_RANSAC, BREP_geometry, BREP_topology. It is required by 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.
§License
The Autodrop3d licence in LICENSE.md, shipped in the crate (license-file in
the manifest). Source: https://github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL
Re-exports§
pub use brep_geometry::*;pub use brep_topology::*;
Structs§
- Carrier
Deviation - Everything an offset carrier’s construction MEASURED about itself.
- Carrier
Extension - How far an offset carrier’s TRIM grows past the source face at each of its four parametric sides, in world units.
- Measured
Offset Surface - A fitted offset carrier together with what its construction measured about itself.
- Offset
Face Carrier
Enums§
- Offset
Surface Lane - Which branch of
offset_surfacebuilt a carrier — and, with it, whether comparing that carrier against the pointwise offset at the same(u, v)is even the right question.
Functions§
- offset_
face_ carrier - offset_
face_ carrier_ measured offset_face_carrier, with every entity it builds measured against the deviation it was meant to reproduce.- offset_
face_ carrier_ sided - offset_
surface - Construct the same fitted offset carrier surface as the reference shell implementation. Positive distance follows its convention and moves opposite the face’s outward normal.
- offset_
surface_ measured offset_surface, plus the deviation MEASURED between the carrier it built and the pointwise offset that carrier approximates.- offset_
surface_ measured_ sided offset_surface_measuredwith a per-sideCarrierExtension.