Integral invariants for robust geometry processing