# -*- coding: utf-8 -*-## This file is subject to the terms and conditions defined in# file 'LICENSE.txt', which is part of this source code package.#fromMuscat.Helpers.FactoryimportFactory
[docs]defCheckIntegrity(GUI=False):fromMuscat.MeshTools.MeshCreationToolsimportCreateDisk,CreateCubeimportnumpyasnpmesh=CreateDisk(ofTriangles=True)fromMuscat.MeshToolsimportRemeshasRR.InitAllRemesher()print(R.GetAvailableRemesher())forbackendinR.GetAvailableRemesher():if"parmmg"notinbackend.lower():print(f"Remeshing with {backend} in 2D")R.Remesh(mesh,backEnd=backend)else:print(f"Remeshing with {backend} in 3D")mesh3D=CreateCube(dimensions=np.array([8,8,2]),ofTetras=True)R.Remesh(mesh3D,backEnd=backend)return"ok"