POV-Ray : Newsgroups : povray.newusers : Non-infinite Planes... : Re: Non-infinite Planes... Server Time
29 Jul 2024 00:27:28 EDT (-0400)
  Re: Non-infinite Planes...  
From: Tim Attwood
Date: 28 May 2007 20:51:10
Message: <465b78fe$1@news.povray.org>
You could use a polygon...

polygon {
    4, // number of corners
    <0, 0>, <0, 1>, <1, 1>, <1, 0>
}

Polygons can take 3D vectors, but they are
touchy about being flat, it's better to make
them 2D vectors then move it where-ever
if it isn't flat to one of the standard planes.

If you need a functional planar lamina you can
use an isosurface and let the containtained_by
box be mostly flat. Something like...
isosurface { // a cylinder
   function{ sqrt(pow(x,2) + pow(z,2)) - 1 }
   contained_by { box { <-2,-0.001,-2>, <2,0,2> } }
   threshold 0
}


Post a reply to this message

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