forked from 1b-agent/opencadstudio-upstream
Merge pull request #850 from ramox81/codex/associative-center-mark
This commit is contained in:
commit
b648000e78
21 files changed
+1672
-241
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user