|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |