Use arrow keys to change the number of partition lines These lines show where the space was partitioned during the BSP algorithm. Move the point P, around the outside of the shape to see how the line depth (indicated by colour: red = far, green = close) changes. You can also move the points by clicking and dragging.
A remix of ChromeCat's depth sort test with rays added to test accuracy