block by enjalot b5601721953a2287c7da688289ee2073

Circle packing 2x2 voronoi

Full Screen

Following this circle packing tutorial trying to get to this rendering tutorial.

This adjacency placement algorithm has some problems. You need to pass in the parent with the biggest radius first. I think I’m missing some key piece of math that would make sure the proper angle is always used.

We need to use some trigonometry to find the center of the circle we want to place adjacent to its two parents.

SSS rule for finding angle with three known sides

Isosceles relationships for finding perpendicular segment for placing child circle.

Built with blockbuilder.org

forked from enjalot‘s block: Adjacent circles

forked from enjalot‘s block: Circle packing 2x2 voronoi

index.html