| MATLAB Central > MATLAB Newsreader > Binary check for polygons intersection |
|
|
|
Subject: Binary check for polygons intersection From: Sang-Ho Yun Date: 23 Jan, 2013 22:47:06 Message: 1 of 11 |
|
I have two groups of polygons (10000 polygons in one group, 1 million polygons in the other group). I want to know which polygons in each group have overlaps with the polygons in the other group. I know "polybool" can be used to take the intersection of overlapping polygons. However, I don't need the shape of the intersection. I only need binary parameter (either 1 for overlap or 0 for no-overlap) for each polygon in each group. |
|
Subject: Binary check for polygons intersection From: Bruno Luong Date: 23 Jan, 2013 23:26:08 Message: 2 of 11 |
|
"Sang-Ho Yun" wrote in message <kdpp9a$dd3$1@newscl01ah.mathworks.com>... |
|
Subject: Binary check for polygons intersection From: Sang-Ho Yun Date: 23 Jan, 2013 23:37:08 Message: 3 of 11 |
|
Thank you Bruno for your answer. However, it looks like when one polygon entirely includes the other with no intersecting line segments, your function would not return TRUE (please correct me if I am wrong). My task needs TRUE return for this case. |
|
Subject: Binary check for polygons intersection From: Bruno Luong Date: 23 Jan, 2013 23:50:09 Message: 4 of 11 |
|
"Sang-Ho Yun" wrote in message <kdps74$n7c$1@newscl01ah.mathworks.com>... |
|
Subject: Binary check for polygons intersection From: Matt J Date: 23 Jan, 2013 23:53:08 Message: 5 of 11 |
|
"Sang-Ho Yun" wrote in message <kdpp9a$dd3$1@newscl01ah.mathworks.com>... |
|
Subject: Binary check for polygons intersection From: Sang-Ho Yun Date: 24 Jan, 2013 00:01:08 Message: 6 of 11 |
|
> Are they convex polygons? |
|
Subject: Binary check for polygons intersection From: Sang-Ho Yun Date: 24 Jan, 2013 00:22:09 Message: 7 of 11 |
|
> There are two functions, look again. |
|
Subject: Binary check for polygons intersection From: Bruno Luong Date: 24 Jan, 2013 00:27:07 Message: 8 of 11 |
|
"Sang-Ho Yun" wrote in message <kdpurg$2fl$1@newscl01ah.mathworks.com>... |
|
Subject: Binary check for polygons intersection From: Bruno Luong Date: 24 Jan, 2013 00:32:09 Message: 9 of 11 |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message |
|
Subject: Binary check for polygons intersection From: Sang-Ho Yun Date: 24 Jan, 2013 00:43:08 Message: 10 of 11 |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kdpve9$4cq$1@newscl01ah.mathworks.com>... |
|
Subject: Binary check for polygons intersection From: Bruno Luong Date: 24 Jan, 2013 06:38:08 Message: 11 of 11 |
|
"Sang-Ho Yun" wrote in message <kdq02s$6h6$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| polygon intersecti... | Sang-Ho Yun | 23 Jan, 2013 17:49:11 |
