[OpenJDK 2D-Dev] <AWT Dev> Question: Area changes order of points

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Oct 5 15:19:41 UTC 2015


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?


-- 
Best regards, Sergey.



More information about the 2d-dev mailing list