[Ipe-discuss] Specify direction of an arc in a curve containing many segments (Andrew M)

Andrew Martchenko andrew.martchenko at gmail.com
Thu Nov 24 13:01:25 CET 2016


Brilliant! That works perfectly.
Cheers,
Andrew M.


On 24/11/16 22:00, ipe-discuss-request at lists.science.uu.nl wrote:
> Send Ipe-discuss mailing list submissions to
> 	ipe-discuss at lists.science.uu.nl
>
> 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 at lists.science.uu.nl
>
> You can reach the person managing the list at
> 	ipe-discuss-owner at lists.science.uu.nl
>
> 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 <otfried at ipe.airpost.net>
> To: ipe-discuss at lists.science.uu.nl
> Subject: Re: [Ipe-discuss] Specify direction of an arc in a curve
> 	containing many segments
> Message-ID:
> 	<1479967811.796510.797758441.408AA147 at webmail.messagingengine.com>
> 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 at lists.science.uu.nl
>> 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 at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>
>
> End of Ipe-discuss Digest, Vol 131, Issue 6
> *******************************************



More information about the Ipe-discuss mailing list