You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Creates a unit sphere created using regular triangles with resolution defined by a given number of subdivisions.
[V,F] = icosphere(N) generates to matrices containing vertex and face data so that patch('Faces',F,'Vertices',V) produces a unit icosphere with N subdivisions.
FV = icosphere(N) generates an FV structure for using with patch.
icosphere(N) displays the icosphere as a patch on the current axes and does not return anything.
icosphere on its own uses N = 3.
icosphere(AX,...) plots into AX instead of GCA.
Differs from MATLAB builtin function sphere(N) in that it creates a uniform grid of triangles rather than quads formed by stacks and slices (UV sphere).
Cite As
wil (2026). icosphere (https://uk.mathworks.com/matlabcentral/fileexchange/50105-icosphere), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: icosphere (with frequency or recursive subdivision), Build direction estimation for FDM 3D prints
General Information
- Version 1.2.0.0 (4.81 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
