spheretri

SPHERETRI performs a triangulation of a unit sphere based on Icosahedron face partitioning
893 Downloads
Updated 2 Dec 2020

SPHERETRI is a set of high-performance vectorized MATLAB functions for building a triangulation of a unit sphere based on recursive partitioning of each of Icosahedron faces. The resulting triangulation vertices form a nearly even grid on a surface of a sphere.
The latest version is always on GitHub: https://github.com/pgagarinov/spheretri

Example #1 (100k points):
>> nPoints=100000;
>> tic;[vMat,fMat]=spheretri(nPoints);toc;
Elapsed time is 0.103696 seconds.
>> size(vMat)

ans =

163842 3

Example #2 (1 million points):
>> nPoints=1000000;
>> tic;[vMat,fMat]=spheretri(nPoints);toc;
Elapsed time is 1.988475 seconds.
>> size(vMat)

ans =

2621442 3

Cite As

Peter Gagarinov (2026). spheretri (https://github.com/pgagarinov/spheretri), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Bounding Regions in Help Center and MATLAB Answers

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

Added a link to github
Slightly updated description
Cosmetic update
Updated description
Minor fixes to the description
Title change

Added an example
Minor changes to the description
Cosmetic update
Cosmetic change in the logo

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.