forked from 1b-agent/opencadstudio-upstream
1 parent
0038e386f7
commit
7a8da58d55
12 files changed
+352
-120
No files matched your search
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user