'Process args and kwargs.'

def _process_args(self, *args, **kwargs):

    if isinstance(args[0], TriContourSet):
        C = args[0].cppContourGenerator
        if (self.levels is None):
            self.levels = args[0].levels
    else:
        (tri, z) = self._contour_args(args, kwargs)
        C = _tri.TriContourGenerator(tri.get_cpp_triangulation(), z)
        self._mins = [tri.x.min(), tri.y.min()]
        self._maxs = [tri.x.max(), tri.y.max()]
    self.cppContourGenerator = C
