|
![](/i/fill.gif) |
In article <397220e1@news.povray.org> , "Jan Walzer"
<wal### [at] informatik uni-halle de> wrote:
> Than I thought, using a CSG-operation of a cylinder and a
> well-scaled/rotated cube, but this would be quite complicated to
> compute, and will only work if the piece has a bit more than 0
> degrees and a bit less than 180 degrees ...
Use two planes instead of a cube and a CSG intersection. If you place the
cylinder and planes at the origin, you can use a "rotate" attribute along
the cylinder axis to create pie pieces with the planes. This will allow you
to create pieces in any size with the size measured in degrees.
Thorsten
Example (not tested):
intersection
{
cylinder
{
x, -x, 10
}
plane
{
y, 0
}
plane
{
-y, 0
rotate 60*x
}
texture
{
pigment
{
color red 1
}
}
}
Post a reply to this message
|
![](/i/fill.gif) |