Spatial primitives for seeing three-dimensional shape from motion