Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: DispatchError: extrudeLinear 0 methods found #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')