Hi can somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees? Please try the attached minimal example. Thank you! Willi
Is this what you need? If so, change unitsquare by fullsquare. Jairo El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (context@boede.nl) escribió:
Hi
can somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees?
Please try the attached minimal example.
Thank you!
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
___________________________________________________________________________________
Thank you Jairo for your immediate answer. Although it is not yet what I have in mind, I see now what to do. Thanks! Willi
On 12 Apr 2021, at 23:22, Jairo A. del Rio
wrote: Is this what you need? If so, change unitsquare by fullsquare.
Jairo
El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (context@boede.nl) escribió: Hi
can somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees?
Please try the attached minimal example.
Thank you!
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 ___________________________________________________________________________________
Hi, Ok, changing the unitsquare into fullsquare is giving a better result, however it is still not the right drawing. I realise, that in this case probably the use of a vector in this way is not appropriate. — I have changed the drawing into something with rotating the top-line of the rectangle around the corner. If I am correct, then this is the right drawing. Thank you again for your answer, it made me see the culprit correctly! Kind regards Willi
On 12 Apr 2021, at 23:22, Jairo A. del Rio
wrote: Is this what you need? If so, change unitsquare by fullsquare.
Jairo
El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (context@boede.nl) escribió: Hi
can somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees?
Please try the attached minimal example.
Thank you!
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 ___________________________________________________________________________________
On 4/12/2021 11:47 PM, Willi Egger wrote:
Hi,
Ok, changing the unitsquare into fullsquare is giving a better result, however it is still not the right drawing. I realise, that in this case probably the use of a vector in this way is not appropriate. — I have changed the drawing into something with rotating the top-line of the rectangle around the corner. If I am correct, then this is the right drawing.
Thank you again for your answer, it made me see the culprit correctly! I hav eno clu ewhat the intended outcome is but here's some code that shows how triangles relate to squares
\startMPpage path p ; p := fullsquare scaled 4cm; path q ; q := fulltriangle rotated -90 sized 4cm; draw p withcolor red ; draw q withcolor green ; draw center p withpen pencircle scaled 3mm withcolor red ; draw center q withpen pencircle scaled 2mm withcolor green ; draw origin withpen pencircle scaled 1mm withcolor white ; draw q shifted (center p - center q) withcolor blue ; \stopMPpage ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jairo A. del Rio
-
Willi Egger