always render slopes
This commit is contained in:
parent
9d855cfa16
commit
f53117edef
1 changed files with 8 additions and 12 deletions
|
@ -154,8 +154,6 @@ class OpenSCADEngine(Base3DEngine):
|
|||
geometry_buffered = geometry_buffered.intersection(areas).buffer(0)
|
||||
outside_geometry = outside_geometry.intersection(self.bbox)
|
||||
|
||||
slopes = True
|
||||
|
||||
if not inside_geometry.is_empty:
|
||||
if altitudearea.altitude2 is not None:
|
||||
min_slope_altitude = min(altitudearea.altitude, altitudearea.altitude2)
|
||||
|
@ -168,7 +166,6 @@ class OpenSCADEngine(Base3DEngine):
|
|||
|
||||
slope = self._add_slope(bounds, altitudearea.altitude, altitudearea.altitude2,
|
||||
altitudearea.point1, altitudearea.point2, bottom=True)
|
||||
if slopes:
|
||||
main_building_block_diff.append(
|
||||
OpenScadBlock('difference()', children=[polygon, slope], comment=name+' inside cut')
|
||||
)
|
||||
|
@ -208,7 +205,6 @@ class OpenSCADEngine(Base3DEngine):
|
|||
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:
|
||||
union = OpenScadBlock('union()', children=[slope1, slope2], comment=name+'outside')
|
||||
main_building_block.append(
|
||||
OpenScadBlock('difference()',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue