Path ops failure/bug

50 views
Skip to first unread message

Mike Clifton

unread,
Nov 6, 2024, 5:54:13 PMNov 6
to skia-discuss
I'm using Skia's path ops and it mostly works great, but sometimes I'm getting failures when trying to combine what appear to be valid paths.

I've been able to create a reproducible case as a Skia fiddle:


Basically, I create two paths, an oval and a star. I then try to subtract the star from the circle. I get back a result path, but it's not what it should be. The picture here shows the outlines of the oval and star, and the red area is (what is supposed to be) circle - star.

If I tweak some of the coordinates slightly, I can get it to work. But am I doing something wrong, or is this a bug in path ops? Should I go ahead and file a bug?

Mike Clifton

unread,
Nov 6, 2024, 5:58:36 PMNov 6
to skia-discuss
In this picture I've tweaked the coordinates of the star path. The result is a distorted star, but the path op gives the right result - the red area shows the star path subtracted from the oval shape. I'd like to get basically this result without distorting the star.



Jim Van Verth

unread,
Nov 7, 2024, 10:13:25 AMNov 7
to skia-d...@googlegroups.com
That sounds like a bug, I'd go ahead and file it.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/skia-discuss/23cc8aef-83ca-4aef-b143-352c38b490b1n%40googlegroups.com.


--

Jim Van Verth |
 Software Engineer | Google.com

Mike Clifton

unread,
Nov 7, 2024, 12:55:34 PMNov 7
to skia-discuss
Ok, thanks. I've filed a bug here:

Reply all
Reply to author
Forward
0 new messages