Re: Specify direction of an arc in a curve containing many segments
Otfried Cheong <[email protected]> Thu, 24 Nov 2016 07:10:11 +0100
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <[email protected]> |
I think you need to change the orientation of the matrix: put a minus in front of the first r. Cheers, Otfried 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? > > Cheers, > Andrew M. > > > > _______________________________________________ > Ipe-discuss mailing list > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss > Email had 2 attachments: > + fillet.lua > 3k (text/x-lua) > + test.ipe > 7k (text/xml)