Only consider staight lines for colinear check when doing a full revolve (#7209)

* Only consider staight lines for colinear check

* Neaten up code and add test

* Sir, a second sphere has hit the unit test

* Update test snapshots

---------

Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
This commit is contained in:
Ben Crabbe
2025-05-27 14:44:32 +01:00
committed by GitHub
parent 2c1a5ff5c4
commit 083bfe6ec2
12 changed files with 1654 additions and 0 deletions

View File

@ -182,6 +182,11 @@ async fn inner_revolve(
// If an edge lies on the axis of revolution it will not exist after the revolve, so
// it cannot be used to retrieve data about the solid
for path in sketch.paths.clone() {
if !path.is_straight_line() {
edge_id = Some(path.get_id());
break;
}
let from = path.get_from();
let to = path.get_to();