Technical‎ > ‎Houdini‎ > ‎Isosurface‎ > ‎

Boolean

You can mix primitives using some common functions.
Use Minimum function to add 2 or more objects.
Use Maximum function to find the intersection of object.
You can also smooth the fusion bt multiply tou shapes together and subtract a little value.
It's very funny to play around shapes mixing and animate them.

Two Spheres Union:

min( ($X+0.5)*($X+0.5) + ($Y*$Y) + ($Z*$Z) - 1, ($X-0.5)*($X-0.5) + ($Y*$Y) + ($Z*$Z) - 1)

Sphere Intersection:

max( ($X+0.5)*($X+0.5) + ($Y*$Y) + ($Z*$Z) - 1, ($X-0.5)*($X-0.5) + ($Y*$Y) + ($Z*$Z) - 1)
Sphere Difference:

(($X-0.5)*($X-0.5) + $Y*$Y + $Z*$Z - 1)*min( ($X-0.5)*($X-0.5) + $Y*$Y + $Z*$Z - 1, ($X+0.5)*($X+0.5) + $Y*$Y + $Z*$Z - 1) +0.02
Sphere Soft Union:

(($X+0.5)*($X+0.5) + ($Y*$Y) + ($Z*$Z) - 1) * (($X-0.5)*($X-0.5) + ($Y*$Y) + ($Z*$Z) - 1) -0.05
Two Cylinder Union:

min($X^2 + $Z^2 -1, $X^2 + $Y^2 -1)
Subtract Two Cylinder:

($X^2 + $Z^2 -1) * min($X^2 + $Z^2 -1, $X^2 + $Y^2 -1) + 0.01
Three Cylinder Union:

min(min($X^2 + $Z^2 -1, $X^2 + $Y^2 -1) , $Y^2 + $Z^2 -1)

Three Cylinder Soft Union:

($X^2 + $Z^2 -1) * ($X^2 + $Y^2 -1) * ($Y^2 + $Z^2 -1) -0.1
Many Shapes:

A simple play around.

(2*($X+.5)^4 + 2*$Y^4 + 2*$Z^4 - 0.2) * (2*($X-.5)^4 + 2*$Y^4 + 2*$Z^4 - 0.2) * (2*(0.5-$X)^4 + 2*(1.1+$Y)^4 + 2*$Z^4 - 0.2) * (2*(0.5-$X)^4 + 2*($Y)^4 + 2*(1+$Z)^4 - 0.2) * (2*(0.6-$X)^6 + 2*(1.2+$Y)^6 + 2*(1.1+$Z)^6 - 0.02) * (2*(0.5+$X)^4 + 2*(1.1+$Y)^4 + 2*($Z)^4 - 0.2) * (2*(0.5+$X)^4 + 2*(1.1+$Y)^4 + 2*(1+$Z)^4 - 0.2) * (2*(0.5+$X)^2 + 2*($Y)^2 + 2*(1+$Z)^2 - 0.5) * (2*(0.35-$X)^2 + 2*(1-$Y)^2 + 2*(0.7+$Z)^2 - 0.5)

Comments