Re: Specify direction of an arc in a curve containing many segments (Andrew M)
Andrew Martchenko <[email protected]> Thu, 24 Nov 2016 23:01:25 +1100
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <[email protected]> |
Brilliant! That works perfectly. Cheers, Andrew M. On 24/11/16 22:00, ipe-discuss-request-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] wrote: > Send Ipe-discuss mailing list submissions to > ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss > or, via email, send a message with subject or body 'help' to > ipe-discuss-request-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > > You can reach the person managing the list at > ipe-discuss-owner-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ipe-discuss digest..." > > > Today's Topics: > > 1. Re: Specify direction of an arc in a curve containing many > segments (Otfried Cheong) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 24 Nov 2016 07:10:11 +0100 > From: Otfried Cheong <[email protected]> > To: ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > Subject: Re: [Ipe-discuss] Specify direction of an arc in a curve > containing many segments > Message-ID: > <1479967811.796510.797758441.408AA147-2RFepEojUI2N1INw9kWLP6GC3tUn3ZHUQQ4Iyu8u01E@public.gmane.org> > Content-Type: text/plain; charset="utf-8" > > 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) > > ------------------------------ > > _______________________________________________ > Ipe-discuss mailing list > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss > > > End of Ipe-discuss Digest, Vol 131, Issue 6 > *******************************************