feat(hatch): add multi-region selection

Refs #532
This commit is contained in:
Hakan Seven committed 2026-08-13 17:16:29 +03:00
1 parent 0038e386f7
commit 7a8da58d55
12 files changed
+352 -120

No files matched your search

+5
View File
@@ -29,6 +29,10 @@ impl Scene {
self.preview_hatches = std::sync::Arc::new(models);
}
pub fn set_command_preview_hatches(&mut self, models: Vec<HatchModel>) {
self.preview_hatches = std::sync::Arc::new(models);
}
pub fn set_area_preview_regions(&mut self, regions: &[AreaPreviewRegion]) {
let mut models = Vec::new();
for region in regions {
@@ -154,6 +158,7 @@ impl Scene {
world_origin: origin,
boundary: std::sync::Arc::new(boundary),
boundary_wcs: None,
boundary_exterior: None,
pattern: HatchPattern::Solid,
name: "AREA_PREVIEW".into(),
color: [0.0; 4],