-
Notifications
You must be signed in to change notification settings - Fork 62
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
added clipTo #144
added clipTo #144
Conversation
Despite Travis' complaints I think this can be merged |
Does the combined Trace yield intersections that lie outside the clipping path? I think it does, including for rays that don't intersect the clipped Diagram at all. I can put together some tests later, if this question isn't clear. I'm OK merging this anyway, if we can't do better right now. I think the right solution requires explicitly (or implicitly) calculating the intersection Path. (Which I think @fryguybob wants to do.) I've been running into the same issue in 3D. |
I think it does as well, but I'm not sure. I was not sure what we should do with trace? The use case where I needed
Perhaps we should have yet another function say |
That's an interesting use case. I think I would try to (ab)use My intuition of |
I think there is value to a |
I agree with @bergey's intuition of I'll add a |
OK, adding I now think you're right, that we can find the |
I think i can use combination of |
Unfortunately, I think I have to recant. Due to the way we implement |
You're right about the Semigroup instance. I was about to write a better explanation of how I think we can calculate the intersection trace, but I wrote the code instead. I haven't tested it yet, though! @jeffreyrosenbluth, if you have time to test this, that would be great; I'm not sure when I'll get to it. |
@bergey - I should have time to test it tomorrow. |
Unfortunately, the program hangs. Here is my test code:
|
jeffryrosenbluth's test design I added arrows to the graphical output
Diagram showing traces of intersection after my latest push. The code tests the trace in 4 cardinal directions, but only draws an arrow if there is an intersection. |
Great, thanks |
Ready to merge |
add several clipping functions which set Envelope and Trace
No description provided.