pydistmesh icon indicating copy to clipboard operation
pydistmesh copied to clipboard

3D-surface mesh

Open shengdie opened this issue 5 years ago • 5 comments

Is the 3d-surface mesh implemented? Can you give an example? Thank you.

shengdie avatar Jun 24 '19 00:06 shengdie

No... should be pretty easy to do though, most of the work is in the C-code trisurfupd.cpp.

popersson avatar Jun 25 '19 15:06 popersson

Could you please consider adding this? Thank you.

No... should be pretty easy to do though, most of the work is in the C-code trisurfupd.cpp.

shengdie avatar Jun 25 '19 15:06 shengdie

@shengdie This library isn't actively maintained unfortunately.


@popersson I found it here https://github.com/robEllenberg/MATLAB/blob/master/toolbox/distmesh/trisurfupd.cpp. I know you distribute it via http://persson.berkeley.edu/distmesh/distmesh.zip, is it also available somewhere on GitHub that you maintain?

dhermes avatar Jun 25 '19 17:06 dhermes

Hello, I know this has been sitting here for some time. But if you're curious about surface meshing with this distmesh algorithm, I at one point implemented this (in MATLAB) using cubic Bezier surfaces as @popersson recommended I think in his thesis. https://github.com/krober10nd/SeismicMesh/blob/3dmeshing/Example_SurfaceMeshing.m

The problem with using the original surface meshing algorithm is that the initial point generation doesn't work well for non-uniform meshes.

I also implemented trisurfpd in fortran at one point. If that's useful let me know.

hope it helps

krober10nd avatar Mar 06 '20 17:03 krober10nd

...but by using cubic Bezier surfaces and projecting them back and forth into the unit space and onto the 3D surface, the problem can be ameliorated.

krober10nd avatar Mar 06 '20 17:03 krober10nd