Let me see if I can grok your problem.
1. The data in the <points>...</points> element is a list of points in 3-space. You are only interested in the first two coordinates, so you are treating them as points in 2-space (or ordered pairs). These coordinates represent the vertices of a polygon (inferred by the name of your variable.)
2. Each <tag>...</tag> element specifies two polygons (or perhaps even more than two), and they are given names specified by the <name>...</name> element.
3. Given two polygons, p1 and p2, you want to call a function, f(e1, e2), on all pairs of edges where e1 is an edge of p1 and e2 is an edge of p2. An edge of a polygon is defined by two adjacent vertices of the polygon.
Is this essentially what you are trying to do?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.