Difference between revisions of "HowTo:Use the plane object"

From POV-Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
==The Plane==
 
==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.
+
<p>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.</p>
<source lang="pov">
+
<p><source lang="pov">
 
#include "colors.inc"
 
#include "colors.inc"
 
plane {y,-1
 
plane {y,-1
 
   pigment {checker White Tan}
 
   pigment {checker White Tan}
}</source><br/>
+
}</source></p>
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.
+
<p>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.</p>

Revision as of 10:04, 27 December 2007

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.