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

206

label

Modeling

Adaptive Resampling of Curves

favorite

348

label

Modeling

Applying Scales to Mesh Surfaces

favorite

315

label

Modeling

Approximating subdivision surfaces

favorite

240

label

Modeling

Blending COPs SDFs into 3D Volume

favorite

349

label

Modeling

Branching Subdivision Curves

favorite

208

label

Modeling

Circuit Networks