Is anyone else using geom.* intensively?
It seems that the Area class is pretty horrendously crap, performance wise. For instance, new Area(…) is many times slower than typical object creation, and even Area.contains( x, y ) is EXTREMELY slow for any halfway-complex Area object.
E.g. for a CAG shape composed of 6 Circle’s and about 3 subtractions and an intersection, I can see 75 ms for “new Area()” (a problem I can avoid by hierarchical caching of Area objects in a tree), and multiple milliseconds for the contains method.
Unless someone knows of an improvement to Convex Hull that can provide the “outer surface of a CAG shape” (i.e. discards any internal “holes”) AND provides some not-too-hard-to-implement method of doing contains( x,y ) tests, I’m stuck with J2D’s versions.
Even any tips on improving performance on them would be gratefully received.