https://bugs.documentfoundation.org/show_bug.cgi?id=84032

--- Comment #12 from Regina Henschel <rb.hensc...@t-online.de> ---
I'm not an expert with "intersection". But Armin should know.

The relevant methods are
https://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdedtv2.cxx?r=b26ddd42&fi=MergeMarkedObjects#991
and
https://opengrok.libreoffice.org/xref/core/basegfx/source/polygon/b2dpolypolygoncutter.cxx?r=7979508e&fi=solvePolygonOperationAnd#969

As far as I know, there are these principles:
(1) Intersection is done on the area which is enclosed by a polygon.
(2) Objects are converted to contour during the intersection process. Thus an
object with a hairline stroke becomes one object, but an object with a thick
stroke becomes two objects, one for the stroke and one for the fill.
(3) The resulting object gets the style of the object furthest back.

The "Test file" (attachment 106486) has a "ring" object which is a polypolygon
with stroke none, fill color #ff9999 and 0% transparency, and a "circle" object
which is a path with stroke none, fill color #dddddd and 50% transparency. The
"ring" is in front. It looks as if it is completely on the area of the
"circle". Therefore I expect as result of intersecting a ring with stroke none,
fill color #dddddd and 50% transparency. So for me it is a bug.

There might be a problem with working in integer, because the coordinate
differences between outer part of ring and circle are in range of 1/100 mm.
When you first convert the circle (which is a Bezier curve) to polygon and then
intersect the objects, then you get the Gray ring I expect.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to