Skip to content

Commit

Permalink
Fix Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
argenos committed Jan 16, 2025
1 parent 272f6a3 commit f11f093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/floorplan_dsl/classes/fpm2/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ def __init__(
coord = PointCoordinate(self, p.x.value, p.y.value, self.height.value)
else:
# For windows and entryways use thickness
coord = PointCoordinate(self, p.x.value, self.thickness.value, p.z.value)
coord = PointCoordinate(
self, p.x.value, self.thickness.value, p.z.value
)

self.coordinates.append(coord)

Expand Down
4 changes: 3 additions & 1 deletion src/floorplan_dsl/processors/semantics/fpm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def compute_3d_shape(self):
wall = self.location.walls[0].space.walls[self.location.walls[0].wall_idx]
thickness = wall.thickness.value
if len(self.location.walls) == 2:
wall_2 = self.location.walls[1].space.walls[self.location.walls[1].wall_idx]
wall_2 = self.location.walls[1].space.walls[
self.location.walls[1].wall_idx
]
thickness = thickness + wall_2.thickness.value
self.shape_3d = Polyhedron(self, self.shape, thickness=thickness)
self.shape_position_coords = self.get_shape_point_positions(self.shape_3d)

0 comments on commit f11f093

Please sign in to comment.