Bug Report: Trimming circle or ellipse causes oversize box

For general Protocase Designer questions. Anything and everything about Protocase Designer except support questions.

Moderators: cduffney, akirk, mpyne, mrodden

Post Reply
jonathanw
Posts: 12
Joined: Thu Jul 09, 2015 9:36 am
Location: France

Bug Report: Trimming circle or ellipse causes oversize box

Post by jonathanw »

Hi,

In 4.4.9-Jul07:

Trimming a Circle or Ellipse cutout or graphic (others untested) causes the bounding box of the resulting object to be the wrong size: there is extra space on the left.

This is undesirable because the centroid of the bounding box is not in the middle of the resulting element.

It seems to only happen when the left edge of the resulting object is the actual side of the original circle, not a newly created vertex.

See:
trim.png
trim.png (6.73 KiB) Viewed 9461 times
Regards,
--Jonathan
Attachments
trim-demo.pda
(153.67 KiB) Downloaded 1612 times
--Jonathan

dronne
Posts: 353
Joined: Wed Nov 18, 2009 10:54 am

Re: Bug Report: Trimming circle or ellipse causes oversize box

Post by dronne »

Hello Jonathan,
This one is interesting... We are using Java.awt.GeneralPath internally for our objects that are made up of segments. We simply call the getBounds2D() of this Java object, so this error is internal to Java.awt so we will have to make our own bounding algorithms to fix this. We probably will not get to this right away. If it is causing you serious trouble, please let me know.

Sincerely,
--Douglas Ronne
Lead Developer

Post Reply