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

353

label

VEX

Attribute to match across inputs

favorite

238

label

VEX

Sphere Packing / Dart Throwing Algorithm

favorite

265

label

VEX

Deintersecting spheres with Voronoi

favorite

297

label

VEX

Fitting Planes to Point Clouds

favorite

306

label

VEX

How to Analyze VEX Code

favorite

143

label

VEX

Monte Carlo Geometry Processing