Skip to content

Commit

Permalink
Fix: extrudeLinear call
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Jul 16, 2023
1 parent dd706f1 commit 82d7a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dactyl_manuform.py
Original file line number Diff line number Diff line change
Expand Up @@ -4261,7 +4261,7 @@ def baseplate(wedge_angle=None, side='right'):
if wedge_angle is not None:
cq.Workplane('XY').add(cq.Solid.revolve(outerWire, innerWires, angleDegrees, axisStart, axisEnd))
else:
inner_shape = cq.Workplane('XY').add(cq.Solid.extrudeLinear(outerWire=inner_wire, innerWires=[], vecNormal=cq.Vector(0, 0, base_thickness)))
inner_shape = cq.Workplane('XY').add(cq.Solid.extrudeLinear(inner_wire, [], cq.Vector(0, 0, base_thickness)))
inner_shape = translate(inner_shape, (0, 0, -base_rim_thickness))

holes = []
Expand Down
4 changes: 2 additions & 2 deletions src/helpers_cadquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def extrude_poly(outer_poly, inner_polys=None, height=1): # vector=(0,0,1)):
inner_wires.append(cq.Wire.assembleEdges(item.edges().objects))

return cq.Workplane('XY').add(
cq.Solid.extrudeLinear(outerWire=outer_wires, innerWires=inner_wires, vecNormal=cq.Vector(0, 0, height)))
cq.Solid.extrudeLinear(outer_wires, inner_wires, cq.Vector(0, 0, height)))


def import_file(fname, convexity=None):
Expand All @@ -236,4 +236,4 @@ def export_file(shape, fname):
def export_dxf(shape, fname):
print("EXPORTING TO {}".format(fname))
cq.exporters.export(w=shape, fname=fname + ".dxf",
exportType='DXF')
exportType='DXF')

0 comments on commit 82d7a41

Please sign in to comment.