POV-Ray : Newsgroups : povray.advanced-users : how can i : Re: how can i Server Time
30 Jul 2024 12:31:55 EDT (-0400)
  Re: how can i  
From: Nieminen Mika
Date: 17 Jun 1999 00:27:13
Message: <37687921@news.povray.org>
Noah A <vip### [at] powersurfrcom> wrote:
: no i've never uesed it befor some help please?

                  Section 7.5.3.4
                      Polygon

Polygons are useful for creating rectangles, squares and other
planar shapes with more than three edges. Their syntax is:

  polygon {
    TOTAL_NUMBER_OF_POINTS,
    <A_1>, <A_2>, ..., <A_na>, <A_1>,
    <B_1>, <B_2>, ..., <B_nb>, <B_1>,
    <C_1>, <C_2>, ..., <C_nc>, <C_1>,
    ...
  }

The points <A_1> through <A_na> describe the first
sub-polygon, the points <B_1> through <B_nb> describe the
second sub-polygon, and so on. A polygon can contain any
number of sub-polygons, either overlapping or not. In places
where an even number of polygons overlaps a hole appears.
You only have to be sure that each of these polygons is closed.
This is insured by repeating the first point of a sub-polygon at
the end of the sub-polygon's point sequence. This implies that
all points of a sub-polygon are different.

If the (last) sub-polygon is not closed a warning is issued and
the program automatically closes the polygon. This is useful
because polygons imported from other programs may not be
closed, i. e. their first and last point are not the same.

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


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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