I am developing a visualization where I have already calculated the best fit plane from points and have a bounding box (from the voxel structure). The plane is defined by its normal and the centroid and the bounding box by center and the size. I have to specify the end points of the plane. Is there any easy way to find out the bounds of the best-fit plane?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
The intersection of the plane and the bounding box is going to be a polygon that has between three and six sides (I'm ignoring some special cases that are probably not interesting).
It's not clear what you mean by the "bounds" of the plane.
One interpretation would be that the "bounds" of the plane are just the edges of the polygon mentioned above. You can find these edges by intersecting the plane with each of the faces of the bounding box.
If you want a simpler bounding shape, you can construct this from the aforementioned polygon.