refactor(sphere.msh): increased base resolution of spherical mesh
This commit is contained in:
@@ -6,7 +6,7 @@ import argparse
|
||||
def generate_spherical_mesh(radius=1, meshSize=0.1):
|
||||
with pygmsh.geo.Geometry() as geo:
|
||||
# Create a spherical (ball) geometry centered at (0,0,0)
|
||||
sphere = geo.add_ball([0, 0, 0], radius)
|
||||
sphere = geo.add_ball([0, 0, 0], radius, mesh_size=0.1)
|
||||
# Generate a 2D mesh (i.e. surface mesh) of the sphere
|
||||
myMesh = geo.generate_mesh(dim=3)
|
||||
return myMesh
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user