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.
Area.diff
Description: Binary data
