-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mesh on 3D-surface #1
Comments
Interesting but I suspect nontrivial. Meanwhile, there are a couple of routines for the sphere in meshzoo. |
I knew it, but it is not based on force balance. I like distmesh, because
it generates most equilateral triangles, which is important in FEM
simulations. distmesh offers matlab code for 3d-surface mesh, but I can't
read it😞
Geordie McBain <notifications@github.com> 于2019年6月23日周日 下午8:33写道:
… Interesting but I suspect nontrivial. Meanwhile, there are a couple of
routines for the sphere in meshzoo
<https://github.com/nschloe/meshzoo#sphere-surface>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVUYFLFQ7UQOF25VHZSX5DP4AI7NANCNFSM4H22EEOA>
.
|
Would be nice to have. Link to code? |
In the official site, |
Way too complicated for me to dive in like that. PRs welcome. |
I've improved icosa sphere in meshzoo a bit yesterday. In general, you can't get much better than that. |
Alright, it turns out you can actually do a little bit better. I've just added support for surface meshes to optimesh (https://twitter.com/nschloe/status/1184605182396641280), so here's how you get the best spherical mesh: import meshzoo
import optimesh
points, cells = meshzoo.icosa_sphere(10)
class Sphere:
def f(self, x):
return 1.0 - (x[0] ** 2 + x[1] ** 2 + x[2] ** 2)
def grad(self, x):
return -2 * x
points, cells = optimesh.cvt.quasi_newton_uniform_full(
points, cells, 1.0e-2, 100, verbose=False,
implicit_surface=Sphere(),
# step_filename_format="out{:03d}.vtk"
) dmsh definitely won't be able to do any better, so let's close this. |
Hello,
Thank you for your work, could you please implement the 3d-surface mesh like sphere? I tried by myself, but I am not familiar with matlab. Thank you.
The text was updated successfully, but these errors were encountered: