Radial Symmetries

calendar_today

10.02.2024

label

Modeling, VEX

mouse

Houdini 20.0

Description

Creating radial symmetries using VEX.

1 Code

C
        int reps = chi('reps');
float r = chf('radius');

float u = atan2(v@P.x, v@P.y);
u = fit(u, -PI, PI, 0.0, 1.0);
u = frac(u * float(reps));
float v = length(v@P * 2.0);

vector uvw = set(u, v, 0.0);

float d = xyzdist(1, uvw);

d *= chramp('shape', v);

v@rest = v@P;
v@P.y = d * v - r;
    
download

Downloads

link

Related articles

favorite

367

label

Modeling

Adaptive Resampling of Curves

favorite

448

label

Modeling

Applying Scales to Mesh Surfaces

favorite

420

label

Modeling

Approximating subdivision surfaces

favorite

36

label

Modeling

Copying Barb Wire along Curve

favorite

357

label

Modeling

Blending COPs SDFs into 3D Volume

favorite

462

label

Modeling

Branching Subdivision Curves