BREP_reconstruction 0.27.0

Rust B-rep CAD kernel (next.BREP.io): kernel integration for neutral BREP_RANSAC recognition results (mesh to B-rep reconstruction).
Documentation

BREP_reconstruction

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

BREP_reconstruction owns code that needs both the kernel-free BREP_RANSAC recognizer and BREP_kernel: mesh/metadata conversion, carrier-to-kernel conversion, hybrid analytic/faceted reconstruction, STEP validation support, and the STL-to-STEP conversion pipeline. Its Rust library target is brep_reconstruction.

The crate re-exports the brep_ransac public API. Integration-specific APIs are grouped under:

  • brep for kernel mesh/metadata conversion, analytic carrier conversion (including nurbs_surface_from_analytic), and attaching face metadata;
  • step_validation for validating STEP faces against their exact analytic carriers (validate_step_file, validate_step_file_faces_with_progress), reports, progress, and CSV output (reports_to_csv);
  • stl for ASCII/binary STL parsing and welding (read_stl, read_stl_with_options, parse_stl_bytes);
  • stl_conversion for recognition, hybrid/faceted fallback, and validated AP242 STEP serialization (convert_stl_mesh_to_step, and convert_stl_mesh_to_step_with_colors, which carries per-triangle colours onto the STEP presentation styles);
  • import_session for interactive mesh import: analyze_regions reports the regions the hybrid builder will try to fit, fit_region refits one region as a chosen surface kind against a user tolerance, and fit_nurbs_region fits a least-squares B-spline surface where no analytic surface works.

segment_for_hybrid (crate root) exposes the mesh partition the hybrid builder starts from.

It is a library-only package, version 0.27.0. The kernel dependency is pinned EXACTLY (BREP_kernel = "=0.30.0"), so the two move in lockstep; it also depends on BREP_RANSAC, serde and web-time. Licence: the Autodrop3d licence in LICENSE.md, shipped in the crate.

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.