Hi Steve,

Area simplifies the shape into a normalized version that defines the same interior area. It does not care what the original ordering of the points was as it internalizes the shape, all it cares about is which areas are geometrically inside vs. outside and it creates a path according to its own internal policies that defines the same inside/outside boundaries.

There is no "trick" to customizing this behavior and I'm not entirely sure why the point ordering would matter when you are performing CAG (Constructive Area Geometry) operations - only interiors and exteriors should matter.

                        ...jim

On 10/5/15 8:19 AM, Sergey Bylokhov wrote:
Hello,
I think this question is related to java2d, correct alias cc.

On 24.09.15 12:53, Hruda, Steve wrote:
I use the java.awt.geom.Area class to clip a shape. Today I noticed that
new Area(Shape) changes the orientation of the shape, so that I get the
points of the Area counter-clockwise in every case.

The following test shows you my problem.

https://drive.google.com/file/d/0B7P_rknS1TWxVGJ6a3hBaElBTk0/view?usp=sharing


Is this a bug or do I something wrong?

Is there a trick to get the points in the correct order?


Reply via email to