Skip to content
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

Something like Line3d.ClipByPlane #69

Open
luithefirst opened this issue Feb 3, 2022 · 0 comments
Open

Something like Line3d.ClipByPlane #69

luithefirst opened this issue Feb 3, 2022 · 0 comments

Comments

@luithefirst
Copy link
Member

I've found static bool Intersects(this Line3d line, Plane3d plane, out double t, out V3d p), but a more convenient method to directly clip a line (2d and 3d) would be nice. The only questions would be if the negative or positive side should be clipped. I would say we should follow how we have also defined our Hull3d data structure. There negative is "inside", so we would clip the positive side?

Polygons also have a ConvexClipped method: "Returns all parts of the polygon that are at the positive side of the plane" ... well, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant