SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Wave 214/509: solidcraft-smlib: a plane face takes SMLib's own trims (fork c6530bf)
jyviko69a2c57cfed4
diff --git a/crates/smlib/SMLIB_REV b/crates/smlib/SMLIB_REVindex 4850439152..ed764d3da5 100644--- a/crates/smlib/SMLIB_REV+++ b/crates/smlib/SMLIB_REV@@ -1 +1 @@-c8a19a2497cd5bc3702b0f491d3540ca3bb0a4a3+c6530bfb94c79f266d7d94bf9e9a04c88c2e7b6adiff --git a/crates/smlib/src/export.rs b/crates/smlib/src/export.rsindex 03b14d297c..b78930e4d1 100644--- a/crates/smlib/src/export.rs+++ b/crates/smlib/src/export.rs@@ -832,7 +832,9 @@ fn native_ordered(arrays: &Arrays) -> Res<(b::Brep, Report, Order)> {let params = nurbs.as_ref().unwrap_or(&surface);let natural = params.natural();let domain = [onto([r[0], r[2]], natural[0]), onto([r[1], r[3]], natural[1])];- let spline = matches!(params, b::Surface::Spline { .. } | b::Surface::RationalSpline { .. });+ // SMLib's own trims are taken where the arrays carry them: B-spline faces, NURBS forms, and+ // planes (mapped onto the plane's own (u, v) by the export).+ let spline = matches!(params, b::Surface::Spline { .. } | b::Surface::RationalSpline { .. } | b::Surface::Plane { .. });let mut out = Vec::with_capacity(loops.len());let mut records = Vec::with_capacity(loops.len());let mut given = Vec::with_capacity(loops.len());