[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exporting rectangles en ellipses
From: |
Antoon Pardon |
Subject: |
Re: exporting rectangles en ellipses |
Date: |
Mon, 4 Nov 2002 12:39:31 +0100 |
User-agent: |
Mutt/1.4i |
On Fri, Nov 01, 2002 at 08:53:15PM +0100, Bernhard Herzog wrote:
> Antoon Pardon <address@hidden> writes:
>
> > For the moment I am exporting rectangles and ellipses as
> > bezier curves. However exporting rectangles as rectangles
> > and ellipses as ellipses would be more efficient and would
> > reduce informationloss. But I can't find out how to get at
> > the specific rectangle and ellipse information.
>
> For the representation of Rectangles, see
> http://sketch.sourceforge.net/Doc/devguide-18.html
>
> Ellipses are represented similarly by the transformation that maps the
> unit circle onto the ellipse.
>
> Both classes are derived from RectangularObject and RectangularPrimitive
> in Sketch/Graphics/base.py. You can get at the transformation object
> with the Trafo method.
>
And which methods do I use to get the radii for the rounded corners
or the start and end angle for an elliptical curve and the value
that specifies if the ellips is an open curve, closed by a chord
or like a pie chart.
--
Antoon Pardon