home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 December
/
IMM1295.ISO
/
share
/
grafik
/
povhelp
/
disc.hlp
< prev
next >
Wrap
Text File
|
1994-07-04
|
1KB
|
31 lines
One other flat, finite object type is available with POV-Ray. A disc is
infinitely thin. It has no thickness. If you want a disc with true thick-
ness you should use a very short cylinder. A disc shape may be defined by:
disc { <CENTER>, <NORMAL>, RADIUS }
or
disc { <CENTER>, <NORMAL>, RADIUS, HOLE_RADIUS }
The vector <CENTER> defines the x,y,z coordinates of the center of the
disc. The <NORMAL> vector describes its orientation by describing its sur-
face normal vector. This is followed by a float specifying the RADIUS.
This may be optionally followed by another float specifying the radius of a
hole to be cut from the center of the disc. For examples:
disc {
<-2, -0.5, 0>, //center location
<0, 1, 0>, //normal vector
2 //radius
pigment { color Cyan }
}
disc {
<0, 1, 0>, //center location
<-1, 3, -2>, //normal vector
1.5, //radius
0.5 //hole radius (optional)
pigment { color Yellow }
}
As with the other shapes, discs can be translated, rotated, and scaled.
Because they are finite they respond to automatic bounding. Disc can not be
used in CSG intersection or difference types or inside a clipped_by modifier
because it has no clear 'inside'. The CSG union type works acceptably.