Ejemplo n.º 1
0
    def checkIt(self, objs):
        # type: (str, int) -> (list)

        errors = []

        for obj in objs:
            errs = cmds.checkMesh(obj, c=2)
            errorObj = error.MeshError(obj, errs)
            errors.append(errorObj)

        return errors
Ejemplo n.º 2
0
    def checkIt(self, objs, settings=None):
        # type: (list) -> (list)

        errors = []
        for obj in objs:
            try:
                errs = cmds.checkMesh(obj, c=0)
                if errs:
                    errorObj = Error(obj, errs)
                    errors.append(errorObj)
            except RuntimeError:
                pass

        return errors
Ejemplo n.º 3
0
    def checkIt(self, objs, settings):
        # type: (list) -> (list)

        mfa = settings.getSettings()['maxFaceArea']

        errors = []

        for obj in objs:
            try:
                errs = cmds.checkMesh(obj, c=5, maxFaceArea=mfa)
                if errs:
                    errorObj = Error(obj, errs)
                    errors.append(errorObj)
            except RuntimeError:
                pass

        return errors