POV-Ray : Newsgroups : povray.newusers : Co-planar polygons : Re: Co-planar polygons Server Time
30 Jul 2024 02:25:42 EDT (-0400)
  Re: Co-planar polygons  
From: HermanS
Date: 20 Nov 2004 03:34:35
Message: <MPG.1c091ff04a77537f989692@news.povray.org>
kurtz le pirate wrote:..
> In article <419e827f$1@news.povray.org>,
>  Mike Thorn <mik### [at] realitycheckmultimediacom> wrote:
> 
> >>I'm creating a polygon object and getting a strange error on it.
> >>
> >>polygon {
> >>   5
> >>   <.7,-1.1,.5>,
> >>   <-.6,-1,.4>,
> >>   <-.3,-1,-.4>,
> >>   <-.4,-1.1,-.5>,
> >>   <.7,-1.1,.5>
> >>}
> >>
> >>The file renders, but that poly doesn't show and I get the following 
> >>error: "Parse Warning: Points in polygon are not co-planar. Ignoring 
> >>plygons." Several other polys using some of the same points render just 
> >>fine.
> >>
> >>What am I doing wrong??
> >>
> >>~Mike
> 
>   strange... points for polygon are defined with x and y coord. only !
>   take a look at http://www.povray.org/documentation/view/3.6.1/294/
>   and http://www.povray.org/documentation/view/3.6.1/69/
> 
>   klp
> 
From the documentation:

" All points of a polygon are three-dimensional vectors that have to lay 
on the same plane. If this is not the case an error occurs. It is common 
to use two-dimensional vectors to describe the polygon. POV-Ray assumes 
that the z value is zero in this case."

Nevertheless, I think you can use 3D coordinates to define the points. 
It's already a long time ago I met the same problems using the 
coordinates of the vertices for pentagons that are the faces of a 
dodecahedron. I remember it's a question of some "tolerance" Povray uses 
to see if the given points are coplanar. The method I prefered consisted 
in declaring a pentagon as the union of three triangles.
Some of the images can be seen on the pages devoted to polyhedra on my 
site.
Herman

-- 
home page: http://cage.ugent.be/~hs


Post a reply to this message

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