Replies: 1 comment 4 replies
-
|
Here is another way to create the box parts. I haven't tried the tab part yet.
import cadquery as cq
box1 = (
cq.Workplane()
.box(240, 140, 70)
.edges("|Z")
.fillet(20)
.faces("<Z")
.edges()
.fillet(20)
.faces(">Z")
.rect(200, 100)
.extrude(-50, "s") # cut ("s" is subtractive mode)
)
box1 = box1.faces("<X").workplane(offset=-60).split(True, True)
top = box1.solids(">X")
bottom = box1.solids("<X") |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to slice a thing that I'm building and be able to snap them together with dovetail joints.
I've figured out (google searches, CadQuery docs, stubbornness) a way to locate the tabs and slots relative to the model, without relying on [too much] brute force knowledge of the model's measurements.
It boils down to identifying an edge on the face of the object of interest, then creating a workplane and building the tab/slot bit there.
I've put together a simplified demo of what I'm doing.
I'd love feedback about the method and/or hints about a better way of doing it. While this is a question about a concrete example, I'm more interested in general techniques.
Here's a screenshot of the example:
Here's the code that generated it:
Any feedback would be welcome.
Beta Was this translation helpful? Give feedback.
All reactions