Skip to main content
Known Participant
July 28, 2009
Question

How to find out the overlapping object?

  • July 28, 2009
  • 2 replies
  • 1730 views

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.

This topic has been closed for replies.

2 replies

New Participant
April 25, 2010

You always can copy your art and implement "Intersect" in Pathfinder

using sAIActionManager->PlayActionEvent(...).

Then check if remained art  != nil.

A. Patterson
Inspiring
July 28, 2009

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).