Hello everyone,
I tried to remesh using OptimizeMesh2d, but the mesh shape did not change.
Here is the code. I would appreciate it if you could tell me what the cause is.
from ngsolve import *
from netgen.read_gmsh import ReadGmsh
import ngsolve
mesh = ReadGmsh("sample.msh")
mesh = ngsolve.Mesh(mesh)
mesh.ngmesh.OptimizeMesh2d()
mesh = Mesh(mesh.ngmesh)
mesh.ngmesh.Update()
mesh.ngmesh.Export("sample_remesh.msh", "Gmsh2 Format")
Thank you very much for your help!