brep_blend/lib.rs
1//! Fillets, chamfers and blends of the BREP kernel.
2//!
3//! It is one of the implementation crates the kernel is built from. Applications
4//! should depend on [`BREP_kernel`](https://crates.io/crates/BREP_kernel), which
5//! re-exports the public API of every kernel crate at its root (`brep_kernel::…`)
6//! and adds the feature pipeline and the STEP, IGES, Parasolid (import), 3MF,
7//! GLB, STL and OBJ exchange.
8//! Many items here are public only so the other kernel crates can reach them;
9//! those are hidden from the documentation and carry no stability promise beyond
10//! the kernel's own. The kernel crates are released together, at one version.
11//!
12//! It contains:
13//!
14//! - constant, variable (radius-law) and conic edge fillets;
15//! - chamfers;
16//! - the blend surfaces, their trims and their junctions with the neighbouring faces.
17//!
18//! Kernel crates it requires: [`BREP_RANSAC`](https://crates.io/crates/BREP_RANSAC), [`BREP_geometry`](https://crates.io/crates/BREP_geometry), [`BREP_topology`](https://crates.io/crates/BREP_topology), [`BREP_surface_offset`](https://crates.io/crates/BREP_surface_offset), [`BREP_boolean`](https://crates.io/crates/BREP_boolean), [`BREP_construction`](https://crates.io/crates/BREP_construction). It is required by [`BREP_offset`](https://crates.io/crates/BREP_offset), [`BREP_direct_edit`](https://crates.io/crates/BREP_direct_edit), [`BREP_kernel`](https://crates.io/crates/BREP_kernel).
19//!
20//! ## Building
21//!
22//! The crate builds natively and for `wasm32-unknown-unknown`. The `parallel`
23//! feature runs some per-face loops on rayon; `profile-wall` turns on a diagnostic
24//! wall-time partition. Both are off by default, and `BREP_kernel` forwards them.
25//!
26//! The packaged crate ships the library sources, the README, the licence and the
27//! manifest; it carries no test suite.
28//!
29//! ## License
30//!
31//! The Autodrop3d licence in `LICENSE.md`, shipped in the crate (`license-file` in
32//! the manifest). Source: <https://github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL>
33// Implementation crate of the kernel: its formerly crate-private items are public for the crates above
34// (documented hidden), and their docs may name private helpers.
35#![allow(rustdoc::private_intra_doc_links)]
36use serde::{Deserialize, Serialize};
37#[allow(unused_imports)]
38use wasm_bindgen::prelude::*;
39#[macro_use]
40extern crate brep_geometry;
41#[allow(unused_imports)]
42#[doc(no_inline)]
43pub use brep_geometry::*;
44#[macro_use]
45extern crate brep_topology;
46#[allow(unused_imports)]
47#[doc(no_inline)]
48pub use brep_topology::*;
49#[macro_use]
50extern crate brep_surface_offset;
51#[allow(unused_imports)]
52#[doc(no_inline)]
53pub use brep_surface_offset::*;
54#[macro_use]
55extern crate brep_boolean;
56#[allow(unused_imports)]
57#[doc(no_inline)]
58pub use brep_boolean::*;
59#[macro_use]
60extern crate brep_construction;
61#[allow(unused_imports)]
62#[doc(no_inline)]
63pub use brep_construction::*;
64
65#[path = "blending/blend/mod.rs"]
66#[doc(hidden)]
67pub mod blend;
68pub use blend::{
69 take_blend_approximations, take_blend_notes,
70 blend_timing_capture, take_blend_timings, BlendTiming,
71 blend_closed_edge, blend_edge_variable, blend_open_edge, blend_smooth_chain,
72 round_convex_corner,
73};
74#[path = "blending/fillet.rs"]
75#[doc(hidden)]
76pub mod fillet;
77pub use fillet::{
78 chamfer_edge, chamfer_edge_angle, chamfer_edge_asymmetric, chamfer_edges_angle,
79 chamfer_edges_asymmetric, chamfer_edges_asymmetric_linear, fillet_edge, fillet_edge_conic, fillet_edges, fillet_edges_conic, fillet_edges_conic_distances, fillet_edges_conic_setback, fillet_edges_reported, fillet_edges_reported_at_offset,
80 fillet_edge_g2, fillet_edges_g2, fillet_faces, full_round, fillet_edges_radii, fillet_edges_setback, fillet_edges_variable, fillet_edges_variable_law, fillet_edges_variable_vertex_radii,
81 BlendSelection,
82};
83#[path = "blending/law.rs"]
84#[doc(hidden)]
85pub mod law;
86pub use law::{LawSegment, RadiusLaw};
87
88/// Hash of this crate's source (`build.rs`), one part of the kernel's source stamp.
89#[doc(hidden)]
90pub const SOURCE_HASH: Option<&str> = option_env!("BREP_KERNEL_SOURCE_HASH");