POV-Ray : Newsgroups : povray.newusers : Pieslice object? Server Time
14 Nov 2024 18:22:02 EST (-0500)
  Pieslice object? (Message 1 to 2 of 2)  
From: Morten Lorentzen
Subject: Pieslice object?
Date: 8 Feb 1998 19:05:39
Message: <34DE4853.3BE8@web4you.dk>
I have need of a pieslice object
(meaning a cutout of a cylinder at aproximately 35 degree)
It would also be nice if you could keep a lathe or SOR object
to turning all the way around (360 degree), and instead could
stop it at any point, resulting in a pieslice.

But so far I haven't been able to find a way to do such a thing.
Maybe a more expirienced POV user has just the solution for this?

If so, I would be gratefull to hear it.

Morten Lorentzen


Post a reply to this message

From: Steve Vogel
Subject: Re: Pieslice object?
Date: 9 Feb 1998 01:07:48
Message: <34DE9D34.76D2@iconn.net>
When I needed to do this I used the Prism object and intersected it with
the object I wanted to take slices of using the intersection object.

like so:

intersection {
   sphere {
      <0,0,0>, 1
      pigment{ color rgb <0.0,0.5,0.0>}
      }

   prism {   // the prism object
      linear_sweep
      linear_spline
      -1,  // sweep from here
      1,   // to here
      4,   // number of points to sweep
           // 3 for the triangle & the 4rth closes (same as first)
      <0,0>, <2,1>, <-2,1>, <0,0> // the 4 points
      }
   }

The result is the intersection of the two objects.  You could use a
cylinder instead of a shpere.  Try also looking at "prismdm1.pov" or in
the docs for info on intersection and prism.

Good Luck,

Steve

Morten Lorentzen wrote:
> 
> I have need of a pieslice object
> (meaning a cutout of a cylinder at aproximately 35 degree)
> It would also be nice if you could keep a lathe or SOR object
> to turning all the way around (360 degree), and instead could
> stop it at any point, resulting in a pieslice.
> 
> But so far I haven't been able to find a way to do such a thing.
> Maybe a more expirienced POV user has just the solution for this?
> 
> If so, I would be gratefull to hear it.
> 
> Morten Lorentzen


Post a reply to this message

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