[Ipe-discuss] Specify direction of an arc in a curve containing many segments
otfried at ipe.airpost.net
Thu Nov 24 07:10:11 CET 2016
I think you need to change the orientation of the matrix: put a minus in
front of the first r.
On Thu, Nov 24, 2016, at 06:54, Andrew Martchenko wrote:
> Hi all,
> I have written an ipelet (attached) called "fillet", which will create
> circular fillets on a polyline or polygon. The problem I am having is
> that I am unable to specify which side of an arc to draw when
> constructing the filleted curve. On line 108, swapping x1 and x2 around
> in the function
> ipe.Arc(ipe.Matrix(r, 0, 0, r, c.x, c.y), x1, x2)
> does not make a difference to the arc that gets drawn.
> I have attached a test.ipe file to illustrate the problem. Here's how to
> run the ipelet
> 1) select the shape
> 2) type Ctrl-F
> 3) enter 12 for the radius of the fillet and select OK
> Notice that the inner fillets are correctly applied while the outer
> fillets are incorrect. So how can I specify the direction in which the
> arc is drawn.
> Also, how would I go about deleting the old polygon/polyline?
> Andrew M.
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> Email had 2 attachments:
> + fillet.lua
> 3k (text/x-lua)
> + test.ipe
> 7k (text/xml)
More information about the Ipe-discuss