Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

OpenSCAD Voronoi Generator

by felipesanches, published

OpenSCAD Voronoi Generator by felipesanches Feb 6, 2013
Tip Designer Report Thing

Thing Info

7536Views 1252Downloads Found in Math Art


This is a script that generates Voronoi diagrams. You can round the corners and also determine whether to render or not the nuclei of the cells in the diagram.


The voronoi diagram can be generated eigther by providing a set of 2d points, or by generating a random set of n points.

More from Math Art

view more
Tip Designer Report Thing

Thing Info

7536Views 1252Downloads Found in Math Art


Liked By

View All


OpenSCAD Voronoi Generator by felipesanches is licensed under the GNU - GPL license.

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

All Apps

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

App Info Launch App
Customizer Thing App

This design is now also available at https://github.com/felipesanches/OpenSCAD_Voronoi_Generator

Thanks Decipher for reminding me of doing that :-)
I'll gladly review pull requests.

happy hacking,
Felipe Sanches

Jun 2, 2015 - Modified Jun 2, 2015
Decipher - in reply to felipesanches

Thanks for the email nudge, will get my PR in ASAP.

Edit: PR done.


I've made some improvements to your code; simplifying it to use a shared function instead of two almost duplicate functions, removing the deprecated assign() module usage and adding randomness to the random seed if it is not supplied.

I was hoping you could create a repo for your initial version so that I can fork and do a PR, as I would also like to make some additional improvements.


Willing to share? Looking for å way to make a pattern on a shape I've already made.

See the top comment, check the github repo, I already did my PR.

hi, first let me say thank you for the great share...can you please tell me how to run this voronoi generator on an existing stl file ?

i have OpenScad on mac assuming the stl file is loaded ?

many thanks.

wow - looking at the source code, you definitely know how to use openscad !
would love to see more math from you :)

I do it as my full time job :-) Here's the openscad source code for the latest 3d printer design I've been working on, the Metamáquina2 desktop 3d printer: https://github.com/Metamaquina/Metamaquina2https://github.com/Metamaquina...

What a nice job! Think about an english version for your interesting printer website to get more vists! ;)

I have to say, that's incredibly awesome :-)

This is a really cool way to make organic seeming objects in OpenSCAD - great work!