pymadcad icon indicating copy to clipboard operation
pymadcad copied to clipboard

Unable to bevel one only edge

Open jimy-byerley opened this issue 2 years ago • 3 comments

This is a bug reported by @Boehm92 in #74

How can i use the bevel function for only one edge of a cube? Maybe i'm confused but i dont get it running. If i only apply it on one edge it throws folloging exception:

My code:

cube = mdc.brick(width=mdc.vec3(2))

mdc.bevel(
        cube,
        [(1, 2)],  # Edges to smooth
        ("width", 0.3),  # Cutting description, known as 'cutter'
    )
line 648, in mesh_bevel
r.reverse()
UnboundLocalError: local variable 'r' referenced before assignment

jimy-byerley avatar Apr 23 '23 12:04 jimy-byerley

This bug only concerns madcad.cut.bevel() and not madcad.cut.chamfer(), it is due to the cutted edge ending resolution which is failing when both cut endings belong to the same edge. I will have to fix that

jimy-byerley avatar Apr 23 '23 14:04 jimy-byerley

I wanted to ask, if there is an update to the problem?

Boehm92 avatar Jun 19 '23 09:06 Boehm92

Erf ... no I'm sorry, I had not enough time past months ... This doesn't seems so difficult to fix, so I need to find some time for it

jimy-byerley avatar Jun 19 '23 19:06 jimy-byerley