mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-22 21:50:51 -05:00
Add multiple and height-aware bed exclusion volumes
Extend bed exclusion handling so the existing bed_exclude_area field can express multiple independent exclusion regions and optional Z-limited volumes while keeping the original XxY polygon syntax backward compatible. The parser now accepts | separated regions and ZMIN..ZMAX; prefixed polygons. Legacy 2D regions are normalized internally as full-height exclusion volumes, and Z bounds may be omitted to default to the bed surface or printable height. Collision handling now uses a broad 2D convex-hull footprint check as a cheap initiator, followed by direct model-triangle clipping against triangulated exclusion prisms. This removes false positives where a model shadow overlaps an exclusion footprint but the mesh does not intersect the configured Z range. The plater preview renders bed-level regions with the existing grey floor preview, above-bed volumes with an inset grey outline, contextual translucent prism previews, and red mesh highlights for exact intersecting triangles. Preview cache keys include Z ranges and instance transforms so Z-only edits update correctly.
This commit is contained in:
1 parent
ecbe1b1b90
commit
19a454746a
18 files changed
+1102
-80
No files matched your search
@@ -3165,7 +3165,7 @@ void GCodeProcessor::apply_config(const DynamicPrintConfig& config)
|
||||
|
||||
//BBS: add bed_exclude_area
|
||||
const ConfigOptionPoints* bed_exclude_area = config.option<ConfigOptionPoints>("bed_exclude_area");
|
||||
if (bed_exclude_area != nullptr)
|
||||
if (bed_exclude_area != nullptr && !has_bed_exclusion_volume_syntax(*bed_exclude_area))
|
||||
m_result.bed_exclude_area = bed_exclude_area->values;
|
||||
|
||||
const ConfigOptionPoints* wrapping_exclude_area = config.option<ConfigOptionPoints>("wrapping_exclude_area");
|
||||
|
||||
Reference in new issue
Block a user