Merge pull request #850 from ramox81/codex/associative-center-mark

This commit is contained in:
Hakan Seven committed 2026-08-21 20:19:54 +03:00
commit b648000e78
21 files changed
+1672 -241

No files matched your search

+7
View File
@@ -1705,6 +1705,13 @@ pub(crate) fn set_wire_aabb(w: &mut WireModel, entity_box: [f32; 4]) {
}
fn entity_bounds(e: &acadrust::EntityType) -> ([f64; 3], [f64; 3]) {
if let acadrust::EntityType::Line(line) = e {
if let Some(association) = acadrust::entities::CenterMarkAssociation::read(
&line.common.extended_data,
) {
return crate::scene::centermark::mark_bounds(&association);
}
}
if let acadrust::EntityType::Solid(solid) = e {
if let Some(bounds) = crate::entities::solid::wcs_bounds(solid) {
return (bounds.min, bounds.max);