Bound fit-only splines through their interpolated control hull

This commit is contained in:
ramox81 committed 2026-09-11 14:59:32 +03:00
1 parent 7d0c059b30
commit c64d8a359f
2 files changed
+29

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],