DistMesh.jl icon indicating copy to clipboard operation
DistMesh.jl copied to clipboard

Tutorial for original DistMesh examples?

Open chakravala opened this issue 5 years ago • 3 comments

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

Can those examples be re-produced?

chakravala avatar Jun 19 '20 20:06 chakravala

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.

sjkelly avatar Jul 09 '20 17:07 sjkelly

That file does not run for me, I'm getting a bunch of errors and it uses GeometryTypes instead of GeometryBasics.

Could you update it please?

chakravala avatar Jul 16 '20 04:07 chakravala

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: https://github.com/JuliaGeometry/DistMesh.jl/blob/df8d86a71ab0c401bcae3c13f9cb7dd31035d738/test/runtests.jl#L79-L82

sjkelly avatar Jul 16 '20 15:07 sjkelly