feat(meshGeneration): explicitly added core point in mesh generation
This commit is contained in:
Binary file not shown.
@@ -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):
|
||||
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.set_mesh_size_callback(lambda dim, tag, x, y, z, lc: mesh_size_callback(dim, tag, x, y, z, lc, coreRes, outRes, k))
|
||||
|
||||
Reference in New Issue
Block a user