Skip to content
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

Tutorial for original DistMesh examples? #22

Open
chakravala opened this issue Jun 19, 2020 · 3 comments
Open

Tutorial for original DistMesh examples? #22

chakravala opened this issue Jun 19, 2020 · 3 comments

Comments

@chakravala
Copy link

Please make tutorial with the original DistMesh examples from http://persson.berkeley.edu/distmesh/

Can those examples be re-produced?

@sjkelly
Copy link
Member

sjkelly commented Jul 9, 2020

Those examples can be reproduced, but the distance functions are not in this repo. I used Descartes for the SDF construction. The example script I worked from is here: https://github.com/sjkelly/Descartes.jl/blob/sjk/distmesh/examples/fea.jl
This will generate the visualizations of the mesh and graphs of the iterations and final triangle qualities.

@chakravala

This comment was marked as abuse.

@sjkelly
Copy link
Member

sjkelly commented Jul 16, 2020

Can you post the errors? A good start would be to change that file to use GeometryBasics rather than GeometryTypes, since they are mostly compatible. Also if you would like to write you own distance functions, there is a simple example of a circle here:

d(p) = sqrt(sum(p.^2))-1
result = distmesh(d,HUniform(),0.2)
@test length(result.points) == 485
@test length(result.tetrahedra) == 2207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants