3d shape formulas