Skip to main content

Crate brep_surface_offset

Crate brep_surface_offset 

Source
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§

CarrierDeviation
Everything an offset carrier’s construction MEASURED about itself.
CarrierExtension
How far an offset carrier’s TRIM grows past the source face at each of its four parametric sides, in world units.
MeasuredOffsetSurface
A fitted offset carrier together with what its construction measured about itself.
OffsetFaceCarrier

Enums§

OffsetSurfaceLane
Which branch of offset_surface built 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_measured with a per-side CarrierExtension.