forked from 1b-agent/opencadstudio-upstream
Merge pull request #1202 from Ramox81/codex/fix-fit-spline-bounds-20260911
This commit is contained in:
commit
8640634e64
3 files changed
+71
-19
No files matched your search
@@ -1731,6 +1731,11 @@ fn entity_bounds(e: &acadrust::EntityType) -> ([f64; 3], [f64; 3]) {
|
||||
return (bounds.min, bounds.max);
|
||||
}
|
||||
}
|
||||
if let acadrust::EntityType::Spline(spline) = e {
|
||||
if let Some(bounds) = crate::entities::spline::fit_geometry_bounds(spline) {
|
||||
return (bounds.min, bounds.max);
|
||||
}
|
||||
}
|
||||
let bounds = e.as_entity().bounding_box();
|
||||
(
|
||||
[bounds.min.x, bounds.min.y, bounds.min.z],
|
||||
|
||||
Reference in new issue
Block a user