2D and 3D geometric constraint solver.