Jump to content

RTHMan

Recommended Posts

Hi Robert,

it seems he animated a Voronoi diagram:

int pts[] = nearpoints(1, v@P, 1.0, 2);
vector pos_0 = point(1, 'P', pts[0]);
vector pos_1 = point(1, 'P', pts[1]);
float d_0 = distance(pos_0, v@P);
float d_1 = distance(pos_1, v@P);
float d = d_1 - d_0;

d_0 is the distance for driving the growing circles and d is the distance to the cell boundaries.

https://procegen.konstantinmagnus.de/voronoi-diagram-reveal

 

voronoi_reveal.hipnc

Edited by konstantin magnus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...