|
 |
On 21/07/2022 6:10 pm, jr wrote:
> hi,
>
> "m@b" <sai### [at] googlemail com> wrote:
>
> (thanks for swift reply)
>
>
>> You moved the point along the x axis then rotated it by 45 degrees in x.
>> The 45 degree rotation has no effect as the point is still at y = 0, z = 0
>
> no visible effect for the first point, agree, but I thought the rotation would
> (should!) still exist and propagate when subsequent points are calculated.
>
> the next question, then, is how to specify a point <5,0,0> and corresponding
> vrotate()s to give me two separate X-axis rotations (as I tried with the two
> rotation vectors)? do I have to pre-compute some point not-on-axis beforehand,
> or is there a "clean" way?
>
>
> regards, jr.
>
This is hurting my brain a bit.
Reading the docs, the rotations are around the origin (<0,0,0>) so
#local p2_ = vrotate(<5,0,0>,<45,i_,45>);
sphere{p2_, 1}
is equivalent to:
sphere{<0,0,0>, 1 translate<5,0,0> rotate<45,i_,45>}
Not quite sure what you want to achieve.
m@
Post a reply to this message
|
 |