On Mon, 20 Jul 2026 10:10:05 GMT, Jayathirth D V <[email protected]> wrote:

> In AreaOp.pruneEdges() we are finalizing and consuming subcurves prematurely 
> based on link count and this causes artifacts. This PR updates the code to 
> not finalize the subcurves based on link count. Code is updated to finalize 
> and consume subcurves only when there is a not connected Y gap.
> 
> Regression tests draws a circle with individual line segments, without the 
> fix we will see horizontal lines within the circle and with fix we don't see 
> any artifacts. Code change is also verified with clientlibs CI run.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: c8ea1b60
Author:    Jayathirth D V <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c8ea1b60f6a5307f50ff6260130ff6f2517f772c
Stats:     91 lines in 2 files changed: 78 ins; 12 del; 1 mod

8386576: Calculating Area using a complex polygon creates spurious horizontal 
line segments

Reviewed-by: prr, serb

-------------

PR: https://git.openjdk.org/jdk/pull/31971

Reply via email to