Hi all,
I am wondering if any of you know how to find the polygon generated from the intersection of a 3d infinite plane and a 3d cube (or box)?

I have code that finds the intersection of lines and planes, and I know how to split polygons with a plane but not sure how to do the cube/box plane intersection...

The lines making up the polygon wouldn't have to be sorted, I just need them.

any ideas?
cheers,
Paul