Intersection Points for Two SkPaths

556 views
Skip to first unread message

Matthew Leibowitz

unread,
Nov 21, 2016, 3:14:28 PM11/21/16
to skia-discuss
Hi skia-ers, I was wondering what the best way to calculate/obtain the intersection points of paths.

I know about SkPathOps' Op(SkPath, SkPath, SkPathOp, SkPath);
This is almost what I am looking for, but rather I was hoping for the intersection of path points, not the intersection of path areas.

I tried something with SkPaint::getFillPath(SkPath, SkPath);
This can be used, but I may have to use an average-point finder as the intersection is made up of a few points.
So, before doing anything rash, I was hoping for the experts to maybe point out the correct path. :)

Cary Clark

unread,
Nov 21, 2016, 3:49:36 PM11/21/16
to skia-d...@googlegroups.com
Hi Matthew

There's a feature request about this you can star: bug.skia.org/5624
The bug description is a bit vague, it does include what you're asking for.

Because this feature isn't gating our primary customers (Chromium, Android) 
it's not something I'll get to anytime soon, although I anticipate that the
implementation is straightforward and requires a minimum amount of
plumbing.

If you're interested in taking a stab at coding this, I'm happy to help.

Cary


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

Erik Sombroek

unread,
May 28, 2024, 3:57:00 PMMay 28
to skia-discuss
I would be interested in this feature at well!
Would also love to give a stab at it.

Best,

Erik

On Monday, November 21, 2016 at 9:49:36 PM UTC+1 cary...@google.com wrote:
Hi Matthew

There's a feature request about this you can star: bug.skia.org/5624
The bug description is a bit vague, it does include what you're asking for.

Because this feature isn't gating our primary customers (Chromium, Android) 
it's not something I'll get to anytime soon, although I anticipate that the
implementation is straightforward and requires a minimum amount of
plumbing.

If you're interested in taking a stab at coding this, I'm happy to help.

Cary


On Mon, Nov 21, 2016 at 3:14 PM, Matthew Leibowitz <mattl...@live.com> wrote:
Hi skia-ers, I was wondering what the best way to calculate/obtain the intersection points of paths.

I know about SkPathOps' Op(SkPath, SkPath, SkPathOp, SkPath);
This is almost what I am looking for, but rather I was hoping for the intersection of path points, not the intersection of path areas.

I tried something with SkPaint::getFillPath(SkPath, SkPath);
This can be used, but I may have to use an average-point finder as the intersection is made up of a few points.
So, before doing anything rash, I was hoping for the experts to maybe point out the correct path. :)

--
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.
Reply all
Reply to author
Forward
0 new messages