PPath
maintains a private GeneralPath
member for its operations. It is initialized with WIND_NON_ZERO
. Luckily it can be accessed with PPath.getPathReference()
. So this should do the trick:
path_p.getPathReference().setWindingRule(Path2D.WIND_EVEN_ODD);
Here is a result: