I recall that there is a clipping library that might be of some use. No guarantees, just recall that I didn't think it worth reimplementing what is already available in the library. Maybe it implements something you can use.
http://pypi.python.org/pypi/Polygon/2.0.4 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.