Implicit Surfaces and Volumes

calendar_today

11.08.2024

label

VEX, Modeling

mouse

Houdini 20.5

Description

Houdini's volume wrangle can define the shape of volumes and iso surfaces with mathematical formulas.

1 Code

For a simple sphere we take in the radius parameter r and disassemble the position vector v@P using the assign VEX function. Next, a distance equation using x, y and z gets assigned to the volume named f@d.

C
        float r = chf('radius');

float x, y, z;
assign(x, y, z, v@P);

f@d = x * x + y * y + z * z - r;
    
download

Downloads

link

Related articles

favorite

417

label

VEX

Attribute to match across inputs

favorite

33

label

VEX

Curves from Ramp Parameters

favorite

309

label

VEX

Sphere Packing / Dart Throwing Algorithm

favorite

331

label

VEX

Deintersecting spheres with Voronoi

favorite

370

label

VEX

Fitting Planes to Point Clouds

favorite

363

label

VEX

How to Analyze VEX Code