Re: [NTG-context] Trouble constructing a drawer rail with MP

2021-05-22 Thread Willi Egger
Hello Mikael,

thank you very much for the explanation. Indeed I was assuming that giving the 
starting point of a path followed by a dir would result in a vector starting 
from that point. — My knowledge about vectors is unfortunately super restricted 
:-(

Thanks

Willli 

> On 21 May 2021, at 21:58, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> It was in fact not really "working", but it just happened that it
> looked more or less correct in one case, but not in the other.
> 
> For example: The path Pkt[1]--dir(194)*10mm for example is not given
> by the two points Pkt[1] and "Pkt[1] shifted 10mm in direction 194
> degrees", but Pkt[1] and the point which is 10mm from the origin,
> rotated 194 degrees.
> 
> /Mikael
> 
> On Fri, May 21, 2021 at 9:27 PM Willi Egger  wrote:
>> 
>> Hi Jairo!
>> 
>> thank you so much, this is precisely what I need.
>> 
>> Still I am wondering why this is not working starting at the Pkt[2] but 
>> working when starting from Pkt[1].
>> 
>> Kind regards
>> 
>> Willi
>> 
>>> On 21 May 2021, at 13:15, Jairo A. del Rio  wrote:
>>> 
>>> Hi!
>>> 
>>> Do
>>> 
>>> p[102] := (origin--dir(194)*10mm) shifted Pkt[1];
>>> 
>>> and
>>> 
>>> p[103] := (origin--dir(166)*10mm) shifted Pkt[2];
>>> 
>>> do what you need?
>>> 
>>> Jairo
>>> 
>>> El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) 
>>> escribió:
>>> Hello MP Gurus!
>>> 
>>> I wanted to make a technical drawing. However the enclosed mwe does not 
>>> give me the required results.
>>> 
>>> While the vector from point 1 is directing in the desired direction of 194 
>>> degrees, the second vector from point 2 does not as defined point in the 
>>> direction of 166 degrees.
>>> 
>>> What am I doing wrong here?
>>> 
>>> 
>>> Thanks for pointing me into the right direction :-)
>>> 
>>> Willi
>>> 
>>> 
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Trouble constructing a drawer rail with MP

2021-05-21 Thread Mikael Sundqvist
Hi,

It was in fact not really "working", but it just happened that it
looked more or less correct in one case, but not in the other.

For example: The path Pkt[1]--dir(194)*10mm for example is not given
by the two points Pkt[1] and "Pkt[1] shifted 10mm in direction 194
degrees", but Pkt[1] and the point which is 10mm from the origin,
rotated 194 degrees.

/Mikael

On Fri, May 21, 2021 at 9:27 PM Willi Egger  wrote:
>
> Hi Jairo!
>
> thank you so much, this is precisely what I need.
>
> Still I am wondering why this is not working starting at the Pkt[2] but 
> working when starting from Pkt[1].
>
> Kind regards
>
> Willi
>
> > On 21 May 2021, at 13:15, Jairo A. del Rio  wrote:
> >
> > Hi!
> >
> > Do
> >
> > p[102] := (origin--dir(194)*10mm) shifted Pkt[1];
> >
> > and
> >
> > p[103] := (origin--dir(166)*10mm) shifted Pkt[2];
> >
> > do what you need?
> >
> > Jairo
> >
> > El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) 
> > escribió:
> > Hello MP Gurus!
> >
> > I wanted to make a technical drawing. However the enclosed mwe does not 
> > give me the required results.
> >
> > While the vector from point 1 is directing in the desired direction of 194 
> > degrees, the second vector from point 2 does not as defined point in the 
> > direction of 166 degrees.
> >
> > What am I doing wrong here?
> >
> >
> > Thanks for pointing me into the right direction :-)
> >
> > Willi
> >
> >
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Trouble constructing a drawer rail with MP

2021-05-21 Thread Willi Egger
Hi Jairo!

thank you so much, this is precisely what I need.

Still I am wondering why this is not working starting at the Pkt[2] but working 
when starting from Pkt[1].

Kind regards

Willi

> On 21 May 2021, at 13:15, Jairo A. del Rio  wrote:
> 
> Hi! 
> 
> Do
> 
> p[102] := (origin--dir(194)*10mm) shifted Pkt[1];
> 
> and
> 
> p[103] := (origin--dir(166)*10mm) shifted Pkt[2];
> 
> do what you need? 
> 
> Jairo
> 
> El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) 
> escribió:
> Hello MP Gurus!
> 
> I wanted to make a technical drawing. However the enclosed mwe does not give 
> me the required results.
> 
> While the vector from point 1 is directing in the desired direction of 194 
> degrees, the second vector from point 2 does not as defined point in the 
> direction of 166 degrees.
> 
> What am I doing wrong here?
> 
> 
> Thanks for pointing me into the right direction :-)
> 
> Willi
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Trouble constructing a drawer rail with MP

2021-05-21 Thread Jairo A. del Rio
Hi!

Do

p[102] := (origin--dir(194)*10mm) shifted Pkt[1];

and

p[103] := (origin--dir(166)*10mm) shifted Pkt[2];

do what you need?

Jairo

El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl)
escribió:

> Hello MP Gurus!
>
> I wanted to make a technical drawing. However the enclosed mwe does not
> give me the required results.
>
> While the vector from point 1 is directing in the desired direction of 194
> degrees, the second vector from point 2 does not as defined point in the
> direction of 166 degrees.
>
> What am I doing wrong here?
>
>
> Thanks for pointing me into the right direction :-)
>
> Willi
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Trouble constructing a drawer rail with MP

2021-05-21 Thread Willi Egger
Hello MP Gurus!I wanted to make a technical drawing. However the enclosed mwe does not give me the required results.While the vector from point 1 is directing in the desired direction of 194 degrees, the second vector from point 2 does not as defined point in the direction of 166 degrees.What am I doing wrong here?Thanks for pointing me into the right direction :-)Willi

test-rail.pdf
Description: Adobe PDF document


test-rail.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___