Cross Sections of a Cube

Slice the cube with the plane formed by the points P0, P1 and P2. The sliders control the position of each of the 3 points within the cube. When a point is moved, a new plane is formed. This plane's intersection with the cube's faces forms a polygon. The polygon is drawn as a transparent cross section.

Rotate the scene with the mouse or by using the up, down, right or left arrows keys. Zoom using the home and end keys.