spheretri
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
Zitieren als
Peter Gagarinov (2024). spheretri (https://github.com/pgagarinov/spheretri), GitHub. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 | Added a link to github
Added an example
|
|