Merge pull request #1202 from Ramox81/codex/fix-fit-spline-bounds-20260911

This commit is contained in:
Hakan Seven committed 2026-09-11 15:51:23 +03:00
commit 8640634e64
3 files changed
+71 -19

No files matched your search

+5
View File
@@ -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],