feat(meshGeneration): explicitly added core point in mesh generation

This commit is contained in:
2025-03-05 12:56:58 -05:00
parent 3a2bc8e8b2
commit 4de0f9d974
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@@ -12,6 +12,7 @@ def mesh_size_callback(dim, tag, x, y, z, lc, a, b, k):
def generate_spherical_mesh(radius=1.0, coreRes = 0.1, outRes = 0.1, k = 2): def generate_spherical_mesh(radius=1.0, coreRes = 0.1, outRes = 0.1, k = 2):
with pygmsh.occ.Geometry() as geom: with pygmsh.occ.Geometry() as geom:
originPoint = geom.add_point([0.0, 0.0, 0.0], mesh_size=coreRes)
geom.add_ball([0.0, 0.0, 0.0], 1.0) geom.add_ball([0.0, 0.0, 0.0], 1.0)
geom.set_mesh_size_callback(lambda dim, tag, x, y, z, lc: mesh_size_callback(dim, tag, x, y, z, lc, coreRes, outRes, k)) geom.set_mesh_size_callback(lambda dim, tag, x, y, z, lc: mesh_size_callback(dim, tag, x, y, z, lc, coreRes, outRes, k))