More Converting from B-rep's to CSG
We now break the process of converting between B-rep's and CSG's into steps.
- Use the b-rep of our solid `X` to specify half spaces associated with each face in the boundary.
- Since the halfspaces from 1 might not suffice to describe `X` in a CSG way, we then add additional separating halfspaces. We compute each of the possible canonical intersections of the halfspaces derived in 1. For each cell we classify it as in or out.
- We then take the union of the in cells.
- This decomposition might have redundant cells so we might run an optimization routine on it to reduce the number of cells.