POV-Ray : Newsgroups : povray.documentation.inbuilt : 2.4.3.1 Plane Server Time: 23 Jul 2014 12:19:38 GMT
  2.4.3.1 Plane (Message 1 to 1 of 1)  
From: Lloyd Lee-Lim
Subject: 2.4.3.1 Plane
Date: 27 Feb 2006 17:45:00
Message: <web.4403396a64decfc7d652bc250@news.povray.org>
Section 2.4.3.1 Plane says:

"This is followed by a float value that gives the distance along the normal
that the plane is from the origin (that is only true if the normal vector
has unit length; see below)."

The comment in parentheses is wrong and should be deleted.  It doesn't
matter if the normal vector has non-unit length.  The float value is always
the distance that the plane is from the origin.

Here is a simple test example:

camera {
    location <0, 1, -5>
    look_at <0, 0, 0>
}

light_source {
    <-100, 100, -100>
    color rgb <1, 1, 1>
}

sphere {
    <0, 0, 0>, 0.1
    pigment { color rgb <1, 0, 0> }
}

sphere {
    <0, -1, 0>, 0.1
    pigment { color rgb <1, 0, 0> }
}

sphere {
    <sqrt(0.5), -sqrt(0.5), 0>, 0.1
    pigment { color rgb <1, 0, 0> }
}

plane {
    <0, 5, 0>, -1
    pigment { color rgb <1, 1, 1> }
}

plane {
    <-10, 10, 0>, -1
    pigment { color rgb <1, 1, 1> }
}

Lloyd Lee-Lim


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.