Skip to content

Commit e6b6c7c

Browse files
Extrude fix
1 parent 7d8aa1c commit e6b6c7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cadquery/occ_impl/shapes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6194,7 +6194,9 @@ def extrude(s: Shape, d: VectorLike, both: bool = False) -> Shape:
61946194
for el in _get(s, ("Vertex", "Edge", "Wire", "Face")):
61956195

61966196
if both:
6197-
builder = BRepPrimAPI_MakePrism(el.moved(-d).wrapped, 2 * Vector(d).wrapped)
6197+
builder = BRepPrimAPI_MakePrism(
6198+
el.moved(-Vector(d)).wrapped, (2 * Vector(d)).wrapped
6199+
)
61986200
else:
61996201
builder = BRepPrimAPI_MakePrism(el.wrapped, Vector(d).wrapped)
62006202

0 commit comments

Comments
 (0)