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

Unable to bevel one only edge #76

Open
jimy-byerley opened this issue Apr 23, 2023 · 3 comments
Open

Unable to bevel one only edge #76

jimy-byerley opened this issue Apr 23, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jimy-byerley
Copy link
Owner

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 jimy-byerley added the bug Something isn't working label Apr 23, 2023
@jimy-byerley jimy-byerley self-assigned this Apr 23, 2023
@jimy-byerley
Copy link
Owner Author

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

@Boehm92
Copy link

Boehm92 commented Jun 19, 2023

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

@jimy-byerley
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants