How to design a solid Body for even Meshing in Matlab? (Hemisphere)
Ältere Kommentare anzeigen
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 Kommentare
Stefan Kerber
am 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
am 17 Nov. 2023
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



