|
![](/i/fill.gif) |
> High!
>
> On 06/16/2010 06:25 PM, Alain wrote:
>>
>> sphere{v_rotate(v_rotate(<0, 15, 0>/5178,rotate <0, 0, 90-lat>),<0,
>> -long+90, 0>)+<sin(radians(-long))*cos(radians(lat)),
>> sin(radians(lat)),cos(radians(-long))*cos(radians(lat))> , <20, 25,
>> 20>/5178}
>> Should be equivalent to your case.
>
> It still doesn't work... contained_by does not accept any rotate or
> translate statements! At least it's that way with 3.6...
Did not change with 3.7 to my knowlege.
>
> See you in Khyberspace!
>
> Yadgar
Oups, forgot to remove a rotate in the macro call. Also, there is a
superfluous underscore "_".
sphere{vrotate(vrotate(<0, 15, 0>/5178,<0, 0, 90-lat>),<0, -long+90,
0>)+<sin(radians(-long))*cos(radians(lat)),
sin(radians(lat)),cos(radians(-long))*cos(radians(lat))> , <20, 25,
20>/5178}
That long location statement is meant to replace your translate and rotates.
The v_rotate() macro replace the rotations.
Everything between the "+" and the radius replace your translate.
Don't forget to remove those:
rotate <0, 0, 90-lat>
rotate <0, -long+90, 0>
translate <sin(radians(-long))*cos(radians(lat)), sin(radians(lat)),
cos(radians(-long))*cos(radians(lat))>
Alain
Post a reply to this message
|
![](/i/fill.gif) |