Hi Gerrit,

Helder Magalhães <[email protected]> wrote on 05/19/2009 11:56:15 
AM:

> > When I display a bounding box for a rotated circle (which should have
> > the same bounds no matter how it is rotated) the box changes as if the
> > original square bounding box was part of the shape, e.g. the bounds 
get
> > larger as you approach 45 degrees. That would mean that the bbox is in
> > fact a maximum bbox. The exact bounds can't be larger (so it's safe to
> > clip), but they could be smaller.

   Correct.  This saves a _lot_ of CPU time.

> > Is there another method that would yield the accurate bounds of
> > transformed shapes? My idea would be as follows:

   Please try calling the 'getBBox' method from the SVG DOM
doing stuff directly with the GVT is likely to give "odd" results
like this.

   You could also use the implementation of that method which
boils down to:
                new SegmentList(node.getOutline()).getBounds2D();

Reply via email to