CAD model acquisition using BSP trees