Updates:
Status: Invalid
Comment #2 on issue 664 by smi...@gmail.com: Polygon intersections in
geometry is wrong
http://code.google.com/p/sympy/issues/detail?id=664
I was not able to successfully install matplotlib with the binaries for
windows (I get a "setup program invalid or damaged" error). But I checked
the intersections by hand and they all look good. The only problem that I
see is that the polygon produced from the intersections probably doesn't
look very nice since the intersections are not ordered in any particular
way. If you want them to look nice you should feed them to convex_hull:
Here are the rationalized pts from the last intersection that the script
calculates. They are not ordered well: the first 3 will make a concave side
of a polygon.
>>> pts
[Point(0, 3/4), Point(0, 1/4), Point(1/4, 1), Point(3/4, 1), Point(1,
3/4), Poin
t(1, 1/4), Point(3/4, 0), Point(1/4, 0)]
If you feed them to convex_hull it sorts everything out:
>>> convex_hull(*pts)
Polygon(Point(0, 1/4), Point(1/4, 0), Point(3/4, 0), Point(1, 1/4),
Point(1, 3/4
), Point(3/4, 1), Point(1/4, 1), Point(0, 3/4))
I am closing this as no longer an issue. I am choosing invalid since the
original problem was not identified in words and I can only assume that the
polygon created looked funny (for the reason just cited).
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.