Voronoi diagram reveal

calendar_today

17.05.2022

label

Modeling

mouse

Houdini

Description

Animating growing voronoi cells on a mesh surface.

1 Voronoi diagram

CPP
        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 while d is the distance to the cell boundaries.

download

Downloads

link

Related articles

favorite

131

label

Modeling

Adaptive Resampling of Curves

favorite

276

label

Modeling

Applying Scales to Mesh Surfaces

favorite

220

label

Modeling

Approximating subdivision surfaces

favorite

184

label

Modeling

Blending COPs SDFs into 3D Volume

favorite

269

label

Modeling

Branching Subdivision Curves

favorite

125

label

Modeling

Circuit Networks