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

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

Guest
Jan 11, 2011 Jan 11, 2011

Copy link to clipboard

Copied

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

Views

1.1K

Translate

Translate

Report

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

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Who did a better algorithm?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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