ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Trouble constructing a drawer rail with MP
Date: Fri, 21 May 2021 21:58:05 +0200	[thread overview]
Message-ID: <CAHy-LL_7pdiRD_nqxubAmnKZgRcWUsmjvEQWbZ3ompYO2rDiWQ@mail.gmail.com> (raw)
In-Reply-To: <F38A64CF-8DE1-4C77-ACF5-773E7EE7429A@boede.nl>

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 <context@boede.nl> 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 <jairoadelrio6@gmail.com> 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 (context@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
___________________________________________________________________________________

  reply	other threads:[~2021-05-21 19:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 10:56 Willi Egger
2021-05-21 11:15 ` Jairo A. del Rio
2021-05-21 19:26   ` Willi Egger
2021-05-21 19:58     ` Mikael Sundqvist [this message]
2021-05-22 20:49       ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHy-LL_7pdiRD_nqxubAmnKZgRcWUsmjvEQWbZ3ompYO2rDiWQ@mail.gmail.com \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).