Repository navigation
New free functions for arcs? #2126
DavidMStraub
started this conversation in
Ideas
Replies: 2 comments
|
Sounds good, PR would be nice. |
0 replies
|
As a workaround I've used Sketch arc in some cases. From #1885: path1 = Sketch().arc((0, 0), x1, 0, 180).val().move(rx=90, z=h) |
0 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.
When using the free function API, a circular arc can be created in one of the following ways:
Both work well, and it's nice that the classmethods slot straight into the free function workflow.
Still, I think arcs are common enough that dedicated free functions would make
cadquery.funceven more pleasant to use, and easier to discover for newcomers (students!). The same goes for a few other curve constructors that are currently only available asEdge/Wireclassmethods: tangent arc, partial ellipse, Bezier and helix.Something along these lines, perhaps:
These could be thin
@multimethodwrappers around the existing classmethods, in the same style assplineandtext. @adam-urbanczyk what do you think? I'd be happy to open a PR.All reactions