|
|
|
|
|
by Kliment
1706 days ago
|
|
With two arbitrary faces on the same axis (say z), at locations z1 and z2 and the shape of each face being represented by the functions a(x,y) and b(x,y), you can get a loft SDF L(x,y,z) between a and b by the following math (this is not correct syntax for any tool I know but should make it clear what's happening): if(z<z1) L=a(x,y) elif(z>z2) L=b(x,y) else L=((z-z1)/(z2-z1))*a(x,y)+((z2-z)/(z2-z1))*b(x,y) For way way more info, you might like https://iquilezles.org/www/articles/distfunctions/distfuncti... |
|
It’s these complex cases that I understand how to approach with a kernel based around face patches, less so how one could achieve it with an SDF