How to design a solid Body for even Meshing in Matlab? (Hemisphere)
Show older comments
Hello dear Matlab community,
I currently try to:
- create a surface from x y z coordinates (easily done with meshgrid and surf)
- export the surface into FreeCad/Gmsh for creating an even Mesh
The result should look as follows (which was fully created in FreeCad):

Why I try doing all of this ?
- Because I know how to design exact surfaces in Matlab
(In this case I need to exactyl define the contact angle between hemisphere and surface)
- Because I only can create even Meshes in FreeCad
In Matlab I only get an uneven Mesh:

So once againg: Is there a workflow for creating a solid body in Matlab that can be evenly triangulated?
2 Comments
Stefan Kerber
on 16 Nov 2023
Hi Niklas,
if I understand your prpblem correctly, it should be possible to define a regular net using the meshgid function and then interpolate your function to this regular grid. I guess a good staring point for this could be Interpolation for 2-D gridded data in meshgrid format - MATLAB interp2 (mathworks.com)
Does this help?
Niklas Kurz
on 17 Nov 2023
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


