File Exchange

image thumbnail

N-level Sierpinski ball

version 3.1 (84.5 KB) by Nicolas Douillet
A function to compute the Sierpinski ball (fractal sponge) based on the regular octahedron

3 Downloads

Updated 12 Feb 2020

View License

Please check the examples tab (doc) here on the right for a complete description.

Once downloaded, typewrite 'doc Sierpinski_ball' or 'help Sierpinski_ball' in Matlab console for support.

Cite As

Nicolas Douillet (2020). N-level Sierpinski ball (https://www.mathworks.com/matlabcentral/fileexchange/73432-n-level-sierpinski-ball), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

A function to compute a Sierpinski ball. Giving the resulting sets of vertices and triangles, it is almost 3D printing ready. Just have to write them in a .ply file for instance. The fractal object thereby created is a fractal sponge.

The algorithm principle is based on the projection of the Sierpinski triangular faces of a regular octahedron on the surface of the unitary sphere.

It is available for 3D printing in my Sculpteo online shop at iteration #3 :
https://www.sculpteo.com/fr/print/3_lvl_sierpinski_ball-3/6TpNgksy?basket=1&noclickredirect=1&uuid=r5hjqW3DqhXmZ5aAeo6qIg

NB : function sample_triangle isincluded, but may also be found independently here :

https://fr.mathworks.com/matlabcentral/fileexchange/64395-sample_triangle?s_tid=prof_contriblnk

You may also have a look at some additional views here :

https://www.flickr.com/photos/153363591@N05/albums/72157689739929586

Tip : from nb_iterations = 3, and if using write_ply.m you struggle with displaying the set out of Matlab [...] try to replace in the file header "uchar ushort" by "uint8 uint32" this may help ;-)

Updates

3.1

Improved remove duplicated vertices function, cover img, updated description

3.0

Remove duplicated vertices and triangles, free description from comments, comments + tip in comment section.

2.2

Title

2.1

New cover img

2.0

All in two files only, improved description, add example.

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories