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
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
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