Spatial primitives for seeing 3D shape from motion