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

Different thickness for top and bottom fingers #721

Open
dizcza opened this issue Nov 11, 2024 · 0 comments
Open

Different thickness for top and bottom fingers #721

dizcza opened this issue Nov 11, 2024 · 0 comments

Comments

@dizcza
Copy link

dizcza commented Nov 11, 2024

I need to glue a 1.5mm thick PCB board to a 4mm thick wooden box designed in Boxes (previously I used OpenScad and lasercut toolbox. I like the rendering routine but the toolbox is limited and finger joins are not symmetric - that's why I'm switching to Boxes).

Assembled picture: https://github.com/dizcza/flashlight_kicad/blob/master/images/view_both.jpg

I just ordered a PCB with the following edge cuts:

flashlight

Now I need to finish the corresponding wooden parts:

flashlight

Same for left, back, and front.

I modified the draw_finger function of the FingerJointEdge just to give you an idea of what I want:

class FingerJointEdge(BaseEdge, FingerJointBase):
    """Finger joint edge """
    char = 'f'
    description = "Finger Joint"
    positive = True

    draw_num = 0

    def draw_finger(self, f, h, style, positive: bool = True, firsthalf: bool = True) -> None:
        print(self.__class__, self.draw_num)
        t = self.settings.thickness
        if self.draw_num >= 3 and isinstance(self, FingerJointEdgeCounterPart):
            h = 1.5
        self.draw_num += 1
    ...

This solution is quick and dirty. How to do it properly?

Related to #109 but I don't want to revive a 5-year-old thread with no comments... Besides, I need only top fingers to have different thicknesses, not all / inner layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant