mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 21:31:15 -07:00
Dissalow overlap of skirt/brim (model vs. prime-towrer) in case of prime-tower brim. [CURA-5864]
This commit is contained in:
parent
173f125d3e
commit
0a860c7011
1 changed files with 4 additions and 1 deletions
|
|
@ -739,13 +739,16 @@ class BuildVolume(SceneNode):
|
||||||
prime_tower_collision = False
|
prime_tower_collision = False
|
||||||
prime_tower_areas = self._computeDisallowedAreasPrinted(used_extruders)
|
prime_tower_areas = self._computeDisallowedAreasPrinted(used_extruders)
|
||||||
for extruder_id in prime_tower_areas:
|
for extruder_id in prime_tower_areas:
|
||||||
for prime_tower_area in prime_tower_areas[extruder_id]:
|
for i_area, prime_tower_area in enumerate(prime_tower_areas[extruder_id]):
|
||||||
for area in result_areas[extruder_id]:
|
for area in result_areas[extruder_id]:
|
||||||
if prime_tower_area.intersectsPolygon(area) is not None:
|
if prime_tower_area.intersectsPolygon(area) is not None:
|
||||||
prime_tower_collision = True
|
prime_tower_collision = True
|
||||||
break
|
break
|
||||||
if prime_tower_collision: #Already found a collision.
|
if prime_tower_collision: #Already found a collision.
|
||||||
break
|
break
|
||||||
|
if ExtruderManager.getInstance().getResolveOrValue("prime_tower_brim_enable"):
|
||||||
|
prime_tower_areas[extruder_id][i_area] = prime_tower_area.getMinkowskiHull(
|
||||||
|
Polygon.approximatedCircle(disallowed_border_size))
|
||||||
if not prime_tower_collision:
|
if not prime_tower_collision:
|
||||||
result_areas[extruder_id].extend(prime_tower_areas[extruder_id])
|
result_areas[extruder_id].extend(prime_tower_areas[extruder_id])
|
||||||
result_areas_no_brim[extruder_id].extend(prime_tower_areas[extruder_id])
|
result_areas_no_brim[extruder_id].extend(prime_tower_areas[extruder_id])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue