-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Support arcs in sketches #100
Comments
This feature should ideally be able to fully replace If we can come up with something better before or while implementing this, great. If not, good enough, this would still be an improvement. In that case we should open a follow-up issue though, for fully replacing |
I think you should also specify whether the arc is clockwise or not |
Thanks for the note! That would be defined by the sign of the |
yes that works. I'm just looking at the project, but it's really interesting, and I like the idea of something like openSCAD but with Rust code, keep up with it :) |
Thank you, @Psykopear! |
With #1057 merged (and some of the work leading up to it), this issue should have become much easier to implement:
|
Indeed; just to be explicit: with the I also lean towards One small remaining issue: |
Thank you for your interest, @antonok-edm!
Please note that the kernel is currently doing that (having an extra "seam" for circles). Originally it didn't, but I switched that around a few months ago, and it simplified a lot of code (because now every edge is bounded by vertices) and made the representation more flexible (arcs can be represented in the kernel, using the same mechanism used for circle representation; this capability isn't exercised anywhere though, and might not work correctly). This isn't a final decision (nothing is!), so I'm happy to discuss changing it back. However, that would require some good arguments. The possible disadvantages of that additional seam are a bit nebulous to me right now, while those code complexity issues were very real.
Sounds reasonable!
Changing the existing |
As of this writing, sketches only support straight edges (i.e. lines segments). The CAD kernel already supports circles though, so adding support for arcs to sketches should not be that difficult.
The way sketches are defined would have to change, of course. Right now they are defined as just a list of points.
fj::Sketch
could provide a convenient API:It doesn't need to look exactly like that, of course. I'm just sketching (no pun intended).
The text was updated successfully, but these errors were encountered: