[OpenJDK 2D-Dev] java.awt.geom.Area produces extraneous short segments (original) (raw)
Alex Lam S.L. alexlamsl at gmail.com
Mon Mar 5 14:06:42 UTC 2012
- Next message: [OpenJDK 2D-Dev] java.awt.geom.Area produces extraneous short segments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: [OpenJDK 2D-Dev] java.awt.geom.Area produces extraneous short segments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]