|
|
Am 04.11.2015 um 15:36 schrieb MCotr:
> Hi,
> I've been trying to solve this problem by looking around, but I didn't find any
> solution.
>
> I define a parametric surface in this way
>
> #declare SlabPhC2= parametric {
> function { u }
> function { v }
> function { MaxDisp*(cosh(sigma*u) - cos(sigma*u) + (sinh(sigma*u) -
> sin(sigma*u))*B)}
>
> <0,0>, <L_Slab,W_Slab>
> contained_by { sphere{0, 10} }
> accuracy 0.01
> precompute 10 x,y,z
> pigment {rgb <0.98, 0.83, 0.58>}
> }
>
>
> where MaxDisp, sigma, B, L_Slab and W_Slab are all parameters defined elsewhere.
> Basically the surface is a rectangular surface bended towards the z axis.
>
> Now I would like to sweep this surface along the z direction for a certain
> distance, in order to get a bended slab with a certain tichkness.
>
> Does anybody know how to do it?
If you have a parametric with the structure
parametric {
function { u }
function { v }
function { f(u,v) }
}
then, if I'm not mistaken, a corresponding sweep could be created using
an isosurface with the structure
isosurface {
function { abs(z-f(x,y)) }
}
and a threshold equal to half the desired sweep distance. The result
will be centered around the original parametric.
Post a reply to this message
|
|