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

Detecting shapes from path points?

New Here ,
May 17, 2011 May 17, 2011

The PathItems object has utility functions for easily creating shapes like ellipses, rectangles, polygons, etc.  These functions return a PathItem.

I'm wondering whether it's possible (and perchance easy) to know by looking at an arbitrary PathItem or its PathPoints, whether it's one of these shapes.  The FXG export code knows how to do this, and I'm sure there's some fairly well-understood point analysis approaches to determining this by looking at each of the points (for instance, you know you have a rectangle if you have four points defining two parallel lines and equal diagonals).

But I'd like an easy way to get this information.  Any suggestions?

TOPICS
Scripting
357
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
Community Expert ,
May 17, 2011 May 17, 2011
LATEST

I don't think there's an easy way, you'll have to resort to math. FXG probably uses Math too.

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