|
|
Le 05/09/2016 à 22:24, StephenS a écrit :
> I saw this from the isosurface tutorial, but was not sure how to fit,
> abs(x-Radius/2)-Radius/2+Block_gap, to it.
The problem is that abs(...) is from a BOX code, with two parallel
planes. You only need one plane for your rounded block, because the
other "side" is circular and done with the sqrt() part.
abs(x - Foo) - Foo : it is for a box with x from 0 to 2*Foo.
Just solve the equation for 0 (all the isosurface is in the negative
domain of the function):
For x = 0, the value is 0.
For x = Foo, the value is -Foo, so inside
For x = 2Foo, the value is 0.
But you do not need the wall at 2Foo. so forget abs().
Post a reply to this message
|
|