-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature request: difference and intersection operations for Path2 vs Region2 #2
Comments
It’s not immediately clear to me what the semantics of those operations would be for a non-enclosed shape (typically they denote operations on a set). Can you provide some examples?
…On Sun, Sep 13 2020 at 4:41 AM, Edwin Jakobs < ***@***.*** > wrote:
Would it be possible to add difference and intersection operations for
open shapes (Path2) versus closes ones (Region2)?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (
#2 ) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAAHUP66BYG74NR4GUWTII3SFSVWRANCNFSM4RKTTJBA
).
|
Ah, I see, I was thinking I'll update once I have some code thrown together for this. |
Yes, this is what I had in mind! Thank you, looking forward to seeing that code. |
Would be very nice to have also have splitting on intersections (closed-closed, closed-open and open-open contours). Here an animation showing one of the cases: https://openrndr.discourse.group/t/doodles-wall-c/51/73?u=abe The result is always a list of open contours, no matter if the sources are closed or open. In my code I have two arguments, a target shape and a cutter shape. When a open contour crosses or touches a closed contour in a single point the only change that takes place on the target closed contour is that the first vertex becomes the intersection point (so the points are sorted). This is useful for animation (if I want to grow the contour starting at the cutting point) or effects like in this doodle, where I cut a series of parallel lines or concentric circles and then apply some forces to the resulting lines. |
I think the general form of this would be a Does that seem reasonable? |
That sounds fair. I see there is a |
I'd probably still have explicit |
Would it be possible to add difference and intersection operations for open shapes (Path2) versus closes ones (Region2)?
The text was updated successfully, but these errors were encountered: