POV-Ray : Newsgroups : povray.general : Math Stuff Help Needed - Please : Re: Math Stuff Help Needed - Please Server Time
12 Aug 2024 19:33:16 EDT (-0400)
  Re: Math Stuff Help Needed - Please  
From: Ken
Date: 15 Feb 1999 08:54:41
Message: <36C826C8.668C6DB4@pacbell.net>
Nieminen Mika wrote:
> 
>   I would probably be able to help you with the maths but I didn't completely
> understand the problem. Can you explain more detailedly what do you want to
> calculate?
> 
> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/



As cleary as I might. The code I presented forms a quarter sphere shape
from flattend almost 2D boxes. After a little work I managed to come up with
a method that solves the problem you get when you rotate two different curves
into each other. A problem that is illustrated by the construction of a beach
ball. The sections are narrower on the ends an fat in the center. If they
were of equal width they would bunch up at the poles of the globe.

  Any way the code takes one box, rotates it from n*-x, y*0 to x*0, n*y
stopping at 90 degrees. As each box is placed by the first while loop action
there is a scaling function being performed the reduces the size of each
subsequent box until the loop times out. So now I have a curved wedge
shaped construct much like the shape of a beach ball section. This small
sliver is now rotated 180 degrees to form the quarter sphere. Finished done.

  For all of this to happen I had to calculate all of the values for each action
that took place to form this object. I would like to restructure the scene file so
that all I or another user has to do is input the size of box he/she wishes to use
and the radius of the sphere shape that needs to be created. The rest of equations
will be handled by the script from this point on.

  Therefore the question is:

  Can the file be converted to take 3 - scale values for the single box object
and one coordinate value, which by the way is also the radius value, then finish
the calcualtions and construction of the object by itself ?

 I believe it is rather straight foreward and should pose no real challenge.
I just lack the personal memory of the processes learned 25 years ago and don't
have the printed resources here to look up the equations I need to plug in to
the right places.

So that's where it stands.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.