Muscat.Containers.MmgRemeshing module

CheckIntegrity(GUI=False)[source]
class MmgRemeshing(mesh: Mesh, solution=None, metric=None)[source]

Bases: object

BuildMmgCommandLine(options: dict)[source]

Build command line for mmg execution

Parameters:

options (dict) – keys corresponding to mmg option name and value corresponding to value if applicable

Returns:

CommandLine – the command line for mmg execution

Return type:

str

LaunchMmg(CommandLine: str)[source]

Launch mmg with a subprocess using command line

Parameters:

CommandLine (str) – the command line for mmg execution

ReadMesh(prefix='mmg')[source]

Read mesh file produced by mmg

Returns:

mesh – mmg resulting mesh from adaption

Return type:

Mesh

Runner(options: dict, temp_name: str | None = None, binary: bool = True, offset: int = 1, prefix='mmg')[source]

Run the process to write mesh in an inria mesh file, launch mmg and read the resulting mesh

Parameters:
  • options (dict) – keys corresponding to mmg option name and value corresponding to value if applicable

  • temp_name (str) – name of the output mesh file

  • binary (bool) –

Returns:

mesh – mmg resulting mesh from adaption

Return type:

Mesh

WriteMeshAndSolution(temp_name: str | None = None, binary: bool = True, offset: int = 0)[source]

Write mesh and solution in a mesh file

Parameters:
  • temp_name (str) – name of the output mesh file

  • binary (bool) –