A generic and flexible framework for the geometrical and topological analysis of (algebraic) surfaces