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

AIShapeConstruction NewEllipticalPie explanation

New Here ,
Jun 30, 2023 Jun 30, 2023

Copy link to clipboard

Copied

Can anyone explain the API call of "NewEllipticalPie"?

The call is:

//                    AIAPI AIErr (*NewEllipticalPie)(AIRealPoint center, AIReal width, AIReal height,

//                                                    AIReal rotationAngle, AIReal startAngle, AIReal endAngle,

//                                                    AIBoolean isReversed, AIArtHandle *newArt);

 

rotationAngle doesn't seem to do anything.

I would expect 90.0 degree start angle to be vertical.

My assumption is that 90.0 start angle and a -90.0 end angle would give a vertical line, but I get the following output with this code:

error = sAIShapeConstruction->NewEllipticalPie(tPoint, circleSize, circleSize, 0.0, 90.0, -90.0, false, &ovalArt);

Output:

khewitt00_0-1688142340733.png

 

 

error = sAIShapeConstruction->NewEllipticalPie(tPoint, circleSize, circleSize, 180.0, 90.0, -90.0, false, &ovalArt);

Output:

khewitt00_1-1688142340733.png

 

 

Thanks

TOPICS
How-to , SDK

Views

50

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
Participant ,
Jul 02, 2023 Jul 02, 2023

Copy link to clipboard

Copied

LATEST
Hello,

A very quick answer, I have not yet used this function but I think the angles
have to be in radians and not in degrees.

kAIRealPi2 and not 90, kAIRealPi and not 180.

I hope this can help.

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