Computer Science Canada Tuple index out of range problem |
Author: | 102jon [ Thu Feb 03, 2011 10:34 am ] | ||||
Post subject: | Tuple index out of range problem | ||||
I'm writing a script that essentially splits a polygon (a list of coordinate pairs) into two for a given special case. For the first polygon I run a for loop as follows:
No problem there. However, I do the exact same thing for the second polygon:
And I get a "error: tuple index out of range". Any insight would be appreciated. |
Author: | DemonWasp [ Thu Feb 03, 2011 12:52 pm ] |
Post subject: | RE:Tuple index out of range problem |
It would be easier for us to help if you also listed the initialization of the two polygons, and if your code were properly indented in your [ code ] elements. |
Author: | 102jon [ Fri Feb 04, 2011 4:08 pm ] |
Post subject: | Re: Tuple index out of range problem |
I figured it out, but thanks. The code was indented properly but something happened when copying and pasting it here. |