[OpenJDK 2D-Dev] java.awt.geom.Area produces extraneous short segments
Alex Lam S.L.
alexlamsl at gmail.com
Mon Mar 5 14:06:42 UTC 2012
I have been using java.awt.geom.Area extensively in my project and
have been hit hard by the problems due to rounding:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4818309
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724141
There may be a few other reported issues as well which I missed.
I have since found a workaround which at least works well for me - by
modifying AreaIterator (see attached). Obvious place for improvement
would be to isClose(), as it is hard-coded to handle a fixed precision
for now.
Regards,
Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Area.diff
Type: application/octet-stream
Size: 2339 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20120305/e65b3e3e/Area.diff>
More information about the 2d-dev
mailing list