Skip to main content
Known Participant
March 24, 2023
Answered

how to check the direction of the pathitem using adobe sdk

  • March 24, 2023
  • 1 reply
  • 437 views

hi all,

i want to retrieve the direction of the path through code..
how ro check the direction of the path and rectangle..

please provide some sample c++ code using adobe sdk

This topic has been closed for replies.
Correct answer A. Patterson

There's no SDK for this, you just have to grab the path & determine its direction by calculating the area. I forget which type Adobe uses (right or left) but I think negative is clockwise & positive is counter-clockwise. Obviously this only works for closed areas.

1 reply

A. Patterson
A. PattersonCorrect answer
Inspiring
March 24, 2023

There's no SDK for this, you just have to grab the path & determine its direction by calculating the area. I forget which type Adobe uses (right or left) but I think negative is clockwise & positive is counter-clockwise. Obviously this only works for closed areas.

Mahesh12Author
Known Participant
March 25, 2023

thanks A.patterson for replaying..
can you vplease provide some sample code to do this..
thanks