POV-Ray : Newsgroups : povray.newusers : Can this be done? :) sor-lathe type question : Re: Can this be done? :) sor-lathe type question Server Time
5 Nov 2024 05:24:53 EST (-0500)
  Re: Can this be done? :) sor-lathe type question  
From: Todd Taylor
Date: 12 Sep 2000 03:49:12
Message: <39bddff8$1@news.povray.org>
"Tor Olav Kristensen" <tto### [at] onlineno> wrote in message
news:39BD88B9.A8295B7D@online.no...
<snip>
> I'm wondering what you mean by this.
>
> Does your bowl like object look anything like
> the vase I just posted to povray.binaries.images ?
> news://news.povray.org/39BD872A.9D0EE76%40online.no

To tell the truth, I am not altogether sure. :)

> In that image I have used 5 lathes segments to join
> the 5 prism parts smoothly.
> (A macro takes care of all the needed calculations.

If I understand you correctly, Tor, you had 5 prism parts and then used 5
lathe segments to smoothly join the prism parts.  What I am intending to do
is to take a single prism object and sweep it around an axis, forming
something akin to a bowl.

For instance, if you were to take the upper case letter "L" and
rotate it about an axis that ran just even with the end of the
horizontal "stick" of the "L", you'd have something looking like
a short, open-ended cylinder.

I want to do the same thing, but with a prism of my own design.

(BTW, your creation, Tor, looks like it'd be good rosebud.  I'd
be interested on how you did that as well as any ideas you might
have on this problem as well.  TIA.)

Thanks!
Todd

Following is the pertinent code:

 #include "colors.inc"
  background{White}
  camera {
    location <4.1, 10.1, -.1>
    look_at <0, 01, 0>
    rotate <180,180,0>
  }
  light_source { <20, 20, -20> color White rotate <180,180,0>}


#declare MyPrism = prism {
    cubic_spline
    0, /* sweep the following shape from here ... */
    1, /* ... up through here */
    9, /* the number of points making up the shape ... */
    <300,-75>, <3,5>, <-3,5>, <-5,0>, <-3,-5>, <3, -5>, <5,0>, <3,5>,
<-50,-50>
    pigment { Green }
    scale<.25,.25,.25>
  }

#declare Count = 0;
#declare Number = 360; /*Number of copies to create*/
union{
  #while(Count < Number)
    object{MyPrism rotate <360 / Number * Count, 0, 0>}
    #declare Count = Count + 1;
  #end
}


Post a reply to this message

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