[sharing] Delaunay Triangulation and Voronoi Diagram in Jitter with [v8]

tmhglnd's icon

Hey all!

I would like to share this brief study on the subject of Delaunay Triangulation and Voronoi Diagrams.

I was initially inspired by a Coding Train tutorial and was interested to see if I could achieve the result in Jitter. I used the new [v8] javascript engine in Max9, which is many times faster than the previous [js] object. I also made use of the new typed-arrays (Float32Array) to work with matrices within v8, instead of working directly on the matrix. For the calculations of the Triangulation and the Voronoi I use the d3-delaunay node package, but it's not used within [node.script], instead it is included in [v8].

Download and support me here: https://tmhglnd.gumroad.com/l/bhvuap

REOM's icon

Hi Tim, many many thanks for your job! Next step for me will be how to use triangulation for morphing/warping meshes or images with Jitter.

Rob Ramirez's icon

you can check out matteo's funky morphing thing here, and find the patches linked in the description: https://youtu.be/MRf8dEh_ixI?t=619