Skip to content

Commit

Permalink
fix front face angle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Jensen authored and florianfesti committed Apr 27, 2024
1 parent 022b4ce commit 4ee8128
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions boxes/generators/shadowbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@ def render(self):
y - frameheight*2, 90-angle,
hypotenuse, 90+angle]
hframe_poly = [
t, 0, x, 0, t, 90+angle,
hypotenuse, 90-angle,
x - framewidth*2, 90-angle,
hypotenuse, 90+angle]
t, 0, x, 0, t, 180-angle,
hypotenuse, angle,
x - framewidth*2, angle,
hypotenuse, 180-angle]

self.polygonWall(vframe_poly, edgetypes, move="up")
self.polygonWall(vframe_poly, edgetypes, move="up")

angle = 90 - angle
self.polygonWall(hframe_poly, edgetypes, move="up")
self.polygonWall(hframe_poly, edgetypes, move="up")

Expand Down

0 comments on commit 4ee8128

Please sign in to comment.