Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to determine a point(or a path) inside a closed path?

Guest
Jan 11, 2011 Jan 11, 2011

I came across such a problem:

      My client requires add a number marks inside a closed path ,and such a closed path is irregular,

abc1.jpgabc2.jpg

My question is, how to ensure a point(or a path) is inside another closed path,and how to calculate this point?

Is there any suite in the SDK to accomplish this function?

TOPICS
SDK
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
Jan 11, 2011 Jan 11, 2011

I don't think the SDK has any help on this. At least, not that I've seen. We do this kind of work ourselves, but fortunately there are a lot of good published algorithms for doing this So long as you assume the lines aren't bezier anyways!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 13, 2011 Jan 13, 2011

Who did a better algorithm?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 13, 2011 Jan 13, 2011

I took a look and ours is based on an algorithm found at

http://softsurfer.com/Archive/algorithm_0103/algorithm_0103.htm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 15, 2011 Jan 15, 2011

haha ,I found a good way to solve this problem,We can use AIPathfinderSuite::DoFrontMinusBackEffect  to determine  whether a path  inside another closed path.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 21, 2017 Jan 21, 2017
LATEST

Dear Friend,

How to determine  whether a path  inside another closed path using AIPathfinderSuite::DoFrontMinusBackEffect method.

I have a look at SDK API reference (index.chm) regarding AIPathfinderSuite::DoFrontMinusBackEffect.

But I am not clear about the same.

please explain more about  AIPathfinderSuite::DoFrontMinusBackEffect method.

Thank you Friend,

Nathan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines