[plt-scheme] Question about drawing to a dc<%> and intersection of shapes

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Jan 26 07:25:27 EST 2009

On Sun, Jan 25, 2009 at 11:26 PM, Grant Rettke <grettke at acm.org> wrote:
> Is there an existing function to detect intersection of shapes?

No, I don't believe you can do that in a simple way with the current
toolkit (Matthew is working on a rewrite for the coming months, and
then the answer will be "if it is a part of cairo: yes".) You can
create a region% object that is the intersection, then draw with that
region and then see if any pixels get plotted. Not a very good
solution, but depending on your context, it might work.

Robby


Posted on the users mailing list.