forked from 1b-agent/opencadstudio-upstream
feat(draw): add fluid tangent arc, circle, and line construction with ellipse support
This commit is contained in:
1 parent
7c0af700e8
commit
92fa661065
11 files changed
+2750
-212
No files matched your search
@@ -248,10 +248,13 @@ impl CylinderCommand {
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
let candidates = crate::modules::draw::draw::circle::ttr_candidates(first, second, radius);
|
||||
let local = crate::modules::draw::draw::circle::best_of(
|
||||
&candidates,
|
||||
(first_hit + second_hit) * 0.5,
|
||||
let local = crate::modules::draw::draw::circle::pick_best_ttr_candidate(
|
||||
first,
|
||||
second,
|
||||
radius,
|
||||
first_hit,
|
||||
second_hit,
|
||||
None,
|
||||
)?;
|
||||
Some(self.plane.to_world(local))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user