Wave 154/509: kernel: planar region booleans are SMLib's exact 2D boolean
1 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - d4f6c16a4 jyviko: kernel: planar region booleans are SMLib's exact 2D boolean Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
+196
-1296
File diff suppressed because it is too large
Load Diff
@@ -71,7 +71,7 @@ pub(crate) struct Draft {
|
||||
}
|
||||
|
||||
#[cfg(feature = "smlib")]
|
||||
pub(crate) use imp::{body_from_record, extrude, loft, loft_rails, loft_to_point, revolve, screw, sphere, sweep, sweep_controlled};
|
||||
pub(crate) use imp::{body_from_record, curve, extrude, loft, loft_rails, loft_to_point, revolve, screw, sphere, sweep, sweep_controlled};
|
||||
|
||||
/// The error of an SMLib operation in a build without SMLib.
|
||||
#[cfg(not(feature = "smlib"))]
|
||||
@@ -145,7 +145,7 @@ mod imp {
|
||||
}
|
||||
|
||||
/// The segment in 3D on `plane`, as SMLib's curve.
|
||||
fn curve(plane: &Plane, s: &Seg2) -> Result<Curve> {
|
||||
pub(crate) fn curve(plane: &Plane, s: &Seg2) -> Result<Curve> {
|
||||
let w = |q: Vec2| p(plane.to_world(q));
|
||||
let n = plane.x.cross(plane.y).normalized().ok_or_else(|| KernelError::Invalid("profile plane".into()))?;
|
||||
let bezier = |pts: &[Vec2], weights: &[f64]| {
|
||||
|
||||
Reference in New Issue
Block a user