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

Is there any way to detect/remove sharp angles from strokes?

Explorer ,
Dec 22, 2020 Dec 22, 2020

I know we can change appearance of sharp angles to make it rounded, but this is not what I'm looking for.

I need to check/change the points of the path, because I'll use it in a script to validate cutpath of stickers

TOPICS
Draw and design , Scripting
327
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 ,
Dec 22, 2020 Dec 22, 2020

You can lower the Limit setting in the Stroke panel. But the best way to avoid the sharp angles is to change the angles of the shape so that they are not as acute.

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
Explorer ,
Dec 23, 2020 Dec 23, 2020
LATEST

Hello Barbara, thank you.

Unfortunatelly Stroke panel seems only affect the visualization, I need to change/check the path itself.

About the change the shape, yes, that is the idea, but I would like to make an final verification 

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 ,
Dec 23, 2020 Dec 23, 2020
A pathPoint has a pointType property, which is either corner or smooth.

 

pathPoints[i].pointType = PointType.CORNER;
pathPoints[i].pointType = PointType.SMOOTH;

 

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
Explorer ,
Dec 23, 2020 Dec 23, 2020

Thank you femkeblanco, but for example in this case, the pointType is smooth but still sharp.

I think the best I can do will be get sets of 3 pathPoints and check if  the angle formed by it is greather then 30~

But it will not be so accurate though

スクリーンショット 2020-12-23 17.51.46.pngexpand image

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