Board index » delphi » Intersection of 2 polygons

Intersection of 2 polygons

Hi all:

I was wondering if anyone had written any kind of
Delphi code for finding intersection of 2 polygons ?
We deal a lot with geometric shapes in Blockbuster
and this will be very helpful code.

Thanks in advance. Please reply to
archana.arkan...@blockbuster.com

Archana

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

 

Re:Intersection of 2 polygons


If you have 2 polygon regions you can get the intersection of the 2 with:

  CombineRgn(hPolyRgn1,
                          hPolyRgn2,
                          hPolyRgn1,
                          RGN_AND);

I have a tip on my Delphi Tip of the Day that creates form shapes doing
this.  It is at http://members.truepath.com/delphi

--
--
Lewis Howell
lewishow...@yahoo.com
Lou's Delphi Tip of the Day:
http://members.truepath.com/delphi
Lou's personal webpage:
http://members.truepath.com/LewisHowell

Quote
dhu...@hotmail.com wrote in message <7fijlk$8p...@nnrp1.dejanews.com>...
>Hi all:

>I was wondering if anyone had written any kind of
>Delphi code for finding intersection of 2 polygons ?
>We deal a lot with geometric shapes in Blockbuster
>and this will be very helpful code.

>Thanks in advance. Please reply to
>archana.arkan...@blockbuster.com

>Archana

>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own

Other Threads