This is not exactly a Perl question, but ya'll are some of the smartest people I know, so I thought that I would ask. I am looking to find the certroid of a part. I have a list of verticies and I read them in one at a time. I am looking to be able to distinguish between the outside and the inside of this part. The vertex are given in a continuous line (point to point) but sometimes it is clockwise and other times it is counter-clockwise. I have each part separated so I can concentrate on one part at a time, but I cannot figure a way to use the vertex points to find out where the inside is. I know that if the order was always in a clockwise motion, the the center would always be to the right. But I can't guarantee that it is. I need to do this because I am trying to put notches on the perimeter, not tabs. Any enlightenment you can give on this subject would be great. Thanks.

update (broquaint): title change (was Inside??)


In reply to OT: point inside polyhedron test by stu96art

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.