draw missing geometries (but openscad breaks now)
@@ -161,13 +161,16 @@ class OpenSCADEngine(Base3DEngine):
)
# actual thingy
- polygon = self._add_polygon(None, inside_geometry,
- current_upper_bound - 1, max_slope_altitude+10)
- slope = self._add_slope(bounds, altitudearea.altitude, altitudearea.altitude2,
- altitudearea.point1, altitudearea.point2)
+ polygon = self._add_polygon(None, outside_geometry,
+ min_slope_altitude - 710, max_slope_altitude + 10)
+ slope1 = self._add_slope(bounds, altitudearea.altitude, altitudearea.altitude2,
+ altitudearea.point1, altitudearea.point2, bottom=False)
+ slope2 = self._add_slope(bounds, altitudearea.altitude - 700, altitudearea.altitude2 - 700,
+ altitudearea.point1, altitudearea.point2, bottom=True)
if slopes:
main_building_block.append(
- OpenScadBlock('difference()', children=[polygon, slope], comment=name+' inside')
+ OpenScadBlock('difference()',
+ children=[polygon, slope1, slope2], comment=name + 'outside')
)
else:
if altitudearea.altitude < current_upper_bound:
