Find intersecting shapes (polygons)

V

vtcad

Guest
I am trying to return a list of all intersecting shapes on a specified
layer based on one shapes list of Points, I have used the function
below for rectangles, but I need something for polygons. Is there a
"find overlap function" based on shape~>points vs. shape~>bBox? I have
run the chop command on all shapes to convert to rectanges, but not
all shapes can be converted, and I can't do an all shape merge due to
speed issues.

dbGetTrueOverlaps(cvTemp shape~>bBox list("metal" "drawing"))

thanks in advance,
 
You'll need to fracture the polygon first, then get the overlaps of each rectangle.







vtcad wrote:
I am trying to return a list of all intersecting shapes on a specified
layer based on one shapes list of Points, I have used the function
below for rectangles, but I need something for polygons. Is there a
"find overlap function" based on shape~>points vs. shape~>bBox? I have
run the chop command on all shapes to convert to rectanges, but not
all shapes can be converted, and I can't do an all shape merge due to
speed issues.

dbGetTrueOverlaps(cvTemp shape~>bBox list("metal" "drawing"))

thanks in advance,
 
On Tue, 20 Mar 2007 09:12:26 -0500, Dominic Duvarney
<srlayoutdesigner-NOSPAM@yahoo.com> wrote:

You'll need to fracture the polygon first, then get the overlaps of each rectangle.


vtcad wrote:
I am trying to return a list of all intersecting shapes on a specified
layer based on one shapes list of Points, I have used the function
below for rectangles, but I need something for polygons. Is there a
"find overlap function" based on shape~>points vs. shape~>bBox? I have
run the chop command on all shapes to convert to rectanges, but not
all shapes can be converted, and I can't do an all shape merge due to
speed issues.

dbGetTrueOverlaps(cvTemp shape~>bBox list("metal" "drawing"))

thanks in advance,
And you can use dbLayerTile() to fracture the shape...

You'll still have a problem with non-orthogonal polygons, but a bit of
post-processing of the matches could help you to filter out any false hits...

Regards,

Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top