walls should start on the ground, not below

This commit is contained in:
Laura Klünder 2017-11-14 04:18:38 +01:00
parent 61fb5d0458
commit c073dcd533

View file

@ -598,11 +598,11 @@ class LevelGeometries:
self.walls_bottom = HybridGeometry(self.walls.geom, self.walls.faces) self.walls_bottom = HybridGeometry(self.walls.geom, self.walls.faces)
self.walls.build_polyhedron(self._create_polyhedron, self.walls.build_polyhedron(self._create_polyhedron,
lower=vertex_altitudes - int(0.7 * 1000), lower=vertex_altitudes,
upper=vertex_wall_heights) upper=vertex_wall_heights)
if interpolator is not None: if interpolator is not None:
upper = interpolator(*np.transpose(self.vertices)).astype(np.int32) - int(0.7 * 1000) upper = interpolator(*np.transpose(self.vertices)).astype(np.int32)
self.walls_extended.build_polyhedron(self._create_polyhedron, self.walls_extended.build_polyhedron(self._create_polyhedron,
lower=vertex_wall_heights, lower=vertex_wall_heights,
upper=upper, upper=upper,