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:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user