Skip to content

Commit

Permalink
Fixed incorrect complensation for zlen
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgale committed Feb 9, 2024
1 parent 20bf97d commit 9c8f8c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cqgridfinity/gf_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def save_svg_file(self, filename=None, path=None, prefix=None):
def extrude_profile(self, sketch, profile, workplane="XY"):
taper = profile[0][1] if isinstance(profile[0], (list, tuple)) else 0
p0 = profile[0][0] if isinstance(profile[0], (list, tuple)) else profile[0]
r = cq.Workplane(workplane).placeSketch(sketch).extrude(p0, taper=taper)
zlen = p0 if ZLEN_FIX else p0 / SQRT2
r = cq.Workplane(workplane).placeSketch(sketch).extrude(zlen, taper=taper)
for level in profile[1:]:
if isinstance(level, (tuple, list)):
zlen = level[0] if ZLEN_FIX else level[0] / SQRT2
Expand Down

0 comments on commit 9c8f8c2

Please sign in to comment.