forked from 1b-agent/opencadstudio-upstream
Aligned constraint: 2Lines turns the second line with the plain Parallel solve
Only the first line's ends are pinned while the second line is made parallel, the way the Parallel constraint itself moves it; the distance is then measured on the solved geometry. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
5fab97a7d0
commit
8e83b2f843
1 file changed
+3
-5
@@ -4000,13 +4000,11 @@ impl OpenCADStudio {
|
||||
id,
|
||||
self.constraint_bar_display,
|
||||
);
|
||||
// The first line stays; the second turns about its start
|
||||
// to run parallel, as the reference keeps that start.
|
||||
let mut pins = first_ends.to_vec();
|
||||
pins.push(second_ends[0]);
|
||||
// The first line stays; the second turns parallel the way the
|
||||
// Parallel constraint itself moves it.
|
||||
self.tabs[i].scene.bump_entities_with_parametric_policy(
|
||||
&[(second_line.entity, crate::scene::ChangeKind::Modified)],
|
||||
&pins,
|
||||
&first_ends,
|
||||
self.constraint_solve_mode,
|
||||
);
|
||||
self.tabs[i].dirty = true;
|
||||
|
||||
Reference in new issue
Block a user