Expand description
Solid offsets, shells and thickening of the BREP kernel.
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:
- shelling and offset shells, sharp and rounded;
- thickening of sheets and faces, and sheets extruded from curves.
Kernel crates it requires: BREP_RANSAC, BREP_geometry, BREP_topology, BREP_surface_offset, BREP_boolean, BREP_construction, BREP_blend. It is required by 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::*;pub use brep_surface_offset::*;pub use brep_boolean::*;pub use brep_construction::*;pub use brep_blend::*;
Structs§
Enums§
- Offset
Corners - How the offset body closes the joins between offset faces.
- Offset
Face Role
Constants§
- SHELL_
ROUNDED_ REFUSAL - The prefix of every refusal of this operation.
- THICKEN_
FACES_ REFUSAL - The prefix of every refusal of this operation.
Functions§
- extrude_
curves_ to_ sheet - The sheet a chain of curves sweeps as it slides by
distancealongdirection: one face per curve (the curve times the slide), each a sheet of its own, in the chain’s order. Every face’s normal is its curve’s direction crossed with the slide’s, so the faces of a chain run head to tail have their normals on one side of the sheet, asthicken_sheet_facesneeds them; run the chain the other way for the other side. - is_
offset_ shell_ no_ retained_ face - Whether
refusalis the shell’s “every face was selected” refusal: the class and slug, never the text. - is_
offset_ shell_ open_ curved_ rim - Whether
refusalis an open curved rim the shell could not close: the assembly’sNonIntegralGenus(typed atfinalize_assembled_solid, carried through every cause put in front of it) or the unwelded curved rim. The class, never the text; a genus sentence quoted under another class is not this refusal. - offset_
shell - offset_
shell_ by_ boolean - The textbook shell: the offset body with the opening faces HELD (copied at
distance zero, so they cancel in the difference), then
source − bodyfor an inward shell andbody − sourcefor an outward one. The walls at the openings come out of the boolean.distancecarriesoffset_shell’s sign (positive inward). - offset_
shell_ closed - Lane O row 34: the CLOSED hollow, a shell with no openings. The offset
body, the whole source grown or shrunk with sharp joins, against the
source:
source − bodyinward andbody − sourceoutward, so the result is the outer shell and the inner void’s shell, with the walls of the band between them.distancecarriesoffset_shell’s sign (positive inward).face_imagesare read back from the operands by surface as inoffset_shell_by_boolean:Offsetfor the body’s faces,Sourcefor the source’s. - offset_
shell_ rounded sourceshelled to a walldistancethick, joined by arcs, open at the flat facesopening_face_ids. The sign iscrate::offset_shell’s: a positive distance puts the wall inside the solid, a negative one outside.- offset_
shell_ with_ diagnostics - Run offset shell with stable counters and validation diagnostics suitable for automated regressions and UI presentation.
- offset_
solid - Offset every face of
sourcebydistance(positive grows) and join the offset faces into a closed body. - thicken_
face_ sheet - §5.9 THICKEN a sheet (an open surface patch over its full parameter domain) into a closed solid.
- thicken_
sheet_ faces - The sheet
facesthickened bythicknessalong the faces’ normals (negative: against them), its open creases closed ascornerssays. - thicken_
trimmed_ sheet - §5.9 THICKEN a TRIMMED sheet region into a closed solid.