Skip to content

Commit 8c5c6d1

Browse files
adam-urbanczykmarcus7070
authored andcommitted
Fix rect
w,h were reversed
1 parent 9ceea9c commit 8c5c6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cadquery/sketch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def rect(
193193
Construct a rectangular face.
194194
"""
195195

196-
res = Face.makePlane(w, h).rotate(Vector(), Vector(0, 0, 1), angle)
196+
res = Face.makePlane(h, w).rotate(Vector(), Vector(0, 0, 1), angle)
197197

198198
return self.each(lambda l: res.located(l), mode, tag)
199199

0 commit comments

Comments
 (0)