HowTo:Use the plane object

From POV-Wiki
Revision as of 02:49, 26 December 2007 by TimA (talk | contribs) (→‎The Plane)
Jump to navigation Jump to search

The Plane

In POV a plane is considered to have a volume, any point that is "under" the plane is inside, and any point that is "above" the plane is outside. This becomes important when you use a plane in CSG. A plane is defined in POV by a direction vector, and a float distance. The direction vector indicates the "up" direction, and the distance is how far in that direction from the origin the surface begins.

#include "colors.inc"
plane {y,-1
   pigment {checker White Tan}
}

This uses the default y vector for "up", it's easy enough to rotate a plane to the desired angles after creating it, but vrotate can be used to rotate the vector before defining the plane.