Function sphereTriangulation discretize a sphere parametrized with:
- radius R and,
- number of division.
Triangles are formed by spiting unit octahedron triangles, so nice mesh is retrieved. My usage was for FEM analysis - results are stored so that they could be used for saving in STL and further meshing.
Code is short and commented, if You have any question You can post.
Arso (2022). Parametrized uniform triangulation of 3D circle/sphere (https://www.mathworks.com/matlabcentral/fileexchange/38909-parametrized-uniform-triangulation-of-3d-circle-sphere), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!