|
|
On Thu, 15 May 2003 20:05:22 +0200, Christoph Hormann <chr### [at] gmxde>
wrote:
>#declare fn_rotated=
> function {
> fn_original(
> x*cos(Angle)+y*sin(Angle),
> -x*sin(Angle)+y*cos(Angle), z
> )
> }
>
>therefore twisting would be something like:
>
>#declare fn_twisted=
> function {
> fn_original(
> x*cos(AngleFactor*z)+y*sin(AngleFactor*z),
> -x*sin(AngleFactor*z)+y*cos(AngleFactor*z), z
> )
> }
writing both as:
#declare fn_rotated=
function(x,y,z,Angle) {
...
}
#declare fn_twisted=
function(x,y,z,AngleFactor) {
...
}
gives variable deforming along axis but calculations will be probably slower.
ABX
Post a reply to this message
|
|