fix bug in openscad renderer when spaces touch holes

This commit is contained in:
Laura Klünder 2018-12-06 17:58:18 +01:00
parent 8c9725a82a
commit 0dad02a518

View file

@ -107,6 +107,7 @@ class OpenSCADEngine(Base3DEngine):
holes = geoms.holes.difference(restricted_spaces) holes = geoms.holes.difference(restricted_spaces)
buildings = buildings.difference(holes) buildings = buildings.difference(holes)
areas = areas.union(holes.buffer(0).buffer(0.01, join_style=JOIN_STYLE.mitre))
main_building_block = OpenScadBlock('union()', comment='Level %s' % geoms.short_label) main_building_block = OpenScadBlock('union()', comment='Level %s' % geoms.short_label)
self.root.append(main_building_block) self.root.append(main_building_block)