Fold: with no fixed side the larger side stays, whichever side of the line it is on (the side areas were measured from the wrong point for one side; QA s22)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
2ef7f908b0
commit
b2d0452656
2 files changed
+19
-1
No files matched your search
@@ -953,7 +953,8 @@ impl SheetBody {
|
||||
let mut n = Vec2::new(-d.y, d.x);
|
||||
let l0 = a2.dot(n);
|
||||
// Which side moves. A flange keeps the side its own bend is on.
|
||||
let side_area = |n: Vec2| signed_area(&clip(&pts, n * l0, n)).abs();
|
||||
let on_line = n * l0;
|
||||
let side_area = |m: Vec2| signed_area(&clip(&pts, on_line, m)).abs();
|
||||
let moves_n = match (panel, fixed) {
|
||||
(Some(j), _) => {
|
||||
let f = self.flanges.get(j).ok_or_else(|| DocError::Invalid("flange".into()))?;
|
||||
|
||||
Reference in new issue
Block a user