POV-Ray : Newsgroups : povray.general : Polygon Problem Server Time
6 Aug 2024 02:24:53 EDT (-0400)
  Polygon Problem (Message 1 to 6 of 6)  
From: Andrew Cocker
Subject: Polygon Problem
Date: 11 Jul 2002 14:47:04
Message: <3d2dd2a8@news.povray.org>
I'm using polygons in my scene for the first time, but am getting the
following warning, even with the example lifted straight from the
documentation:

Warning: Polygon not closed. Closing it.

Using 3.5icl.win32 final release.

It's not a big problem, as the polygons seem to be rendering fine.

Any ideas?

All the best,

Andy Cocker


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Polygon Problem
Date: 11 Jul 2002 14:59:44
Message: <3d2dd5a0@news.povray.org>
In article <3d2dd2a8@news.povray.org> , "Andrew Cocker" <mai### [at] mariner9net>
wrote:

> Warning: Polygon not closed. Closing it.
>
> Using 3.5icl.win32 final release.
>
> It's not a big problem, as the polygons seem to be rendering fine.
>
> Any ideas?

Hmm, this warning message is as clear as I can imagine.  What part of it
don't you understand?

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: TinCanMan
Subject: Re: Polygon Problem
Date: 11 Jul 2002 15:02:53
Message: <3d2dd65d$1@news.povray.org>
> Warning: Polygon not closed. Closing it.
>
> Any ideas?
>
The polygon is not closed. POV-Ray is closing it.

:)

-tgq


Post a reply to this message

From: TinCanMan
Subject: Re: Polygon Problem
Date: 11 Jul 2002 15:09:08
Message: <3d2dd7d4$1@news.povray.org>
"TinCanMan" <Tin### [at] hotmailcom> wrote in message
news:3d2dd65d$1@news.povray.org...
> > Warning: Polygon not closed. Closing it.
> >
> > Any ideas?
> >
Seriously though, from '6.5.2.5 Polygon' : "If the last sub-polygon is not
closed a warning is issued and the program automatically closes the
polygon."

-tgq


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Polygon Problem
Date: 11 Jul 2002 15:09:57
Message: <Xns9248D6BBB7639raf256com@204.213.191.226>
"Andrew Cocker" <mai### [at] mariner9net> wrote in news:3d2dd2a8@news.povray.org:

> Warning: Polygon not closed. Closing it.

so... close it :)

copy 1-st point of polygon in to end of poligon (for linear_spline)


-- 


Post a reply to this message

From: Slime
Subject: Re: Polygon Problem
Date: 11 Jul 2002 16:19:52
Message: <3d2de868$1@news.povray.org>
> Warning: Polygon not closed. Closing it.

"Closing" a polygon means making sure the beginning and end of your list of
points matches up with each other. If it starts at <1,1>, goes to <2,3>, and
ends at <3,1>, then it's not closed. (imagine drawing lines between those
points; you would only draw two sides of the triangle.) In order to close
it, you have to add <1,1> at the end of the list (this is analagous to
bringing your pen to the point you started at).

With linear prisms this is a common mistake, and it doesn't really cause a
problem as you've seen. I usually don't worry about it. However, when you
get into quadratic and cubic splines, matching up the ends is more
important, since the ends of the list of control points don't exactly
correspond to the ends of the spline.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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