Replies: 1 comment
-
Sketch is designed as a replacement for the old style 2D sketching, which does not support things like fillets, cuts and intersects. I still use the old style of 2D for simple things (normal rects, circles, etc), but Sketch must be used for those advanced 2D features. Here is a rect with filleted corners via Sketch. result = (
cq.Sketch()
.rect(4, 4)
.vertices()
.fillet(0.25)
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a rectangle with rounded corners (see line 3) for doing later some extrudes (see line 4). The whole thing runs fine for 3D-version (second line), but not for the 2D-version (third line).
The Cheatsheet says there is also a fillet() for 2D, but it is listed in the Sketching section. It is not clear, when to sketch, and when not to sketch? Can you explain the very nature of a sketch and how it should be defined and used? I have read the manual section, but I cannot put the puzzle together. It looks that a sketch is something like a macro which holds several operations together. It is defined without a workplane context. But again, it is unclear, how the sketch is applied later on to a face or whatever.
Can you explain how
reset()
clean()
close()
finalize()
should be used?
Nothing helps more than a running example.
Beta Was this translation helpful? Give feedback.
All reactions