Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Oct 27, 2023
1 parent b13b3c3 commit 6cf01a5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions frads/ep2rad.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def surface_to_polygon(srf: BuildingSurfaceDetailed) -> Polygon:


def thicken(
surface: Polygon, windows: List[Polygon], thickness: float,
surface: Polygon,
windows: List[Polygon],
thickness: float,
) -> List[Polygon]:
"""Thicken window-wall."""
direction = surface.normal * thickness
Expand Down Expand Up @@ -449,7 +451,9 @@ def _process_surface(
if not check_outward(surface_polygon, zone_center):
surface_polygon = surface_polygon.flip()
for fname, fene in fenestrations.items():
fenestration_polygon, window = self._process_fenestration(fname, fene, zone_center)
fenestration_polygon, window = self._process_fenestration(
fname, fene, zone_center
)
window_polygons.append(fenestration_polygon)
surface_polygon -= fenestration_polygon
windows[fname] = {"bytes": window.bytes}
Expand Down Expand Up @@ -521,7 +525,10 @@ def _pair_surfaces_fenestrations(
return surface_fenestrations

def _process_fenestration(
self, name: str, fenestration: FenestrationSurfaceDetailed, zone_center: np.ndarray
self,
name: str,
fenestration: FenestrationSurfaceDetailed,
zone_center: np.ndarray,
) -> Tuple[Polygon, pr.Primitive]:
fenenstration_polygon = fenestration_to_polygon(fenestration)
if check_outward(fenenstration_polygon, zone_center):
Expand Down

0 comments on commit 6cf01a5

Please sign in to comment.