Copy link to clipboard
Copied
Is it possible to find out wheather one pathItem which not in horizontal and vertical position be overlaped or touched any other items like pathitems,textframes etc. in illustrator cs3 active document.
I got the top, left, right and bottom values of the bounding box for every items. From that i got the overlap of bounding boxes. But i don't know how to find out one pathItem overlaped (or) touched any other items. Kindly advice me the possibilities. I have attached the sample file for review.
Thanks in advance.
Copy link to clipboard
Copied
Unfortunately, I don't know of any Illustrator SDK functionality that provides 'do these paths intersect/overlap'. I'm afraid you have to perform bounding box checks like you're already doing, then conduct segment-by-segment comparisons when you find potential overlaps (as indicated by bounding box hits).
Copy link to clipboard
Copied
You always can copy your art and implement "Intersect" in Pathfinder
using sAIActionManager->PlayActionEvent(...).
Then check if remained art != nil.