* Square pens and dash pattern
@ 2016-04-05 23:44 Aditya Mahajan
2016-04-06 0:59 ` Alan BRASLAU
2016-04-06 7:52 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Aditya Mahajan @ 2016-04-05 23:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
There appears to be a metapost bug with square pens and dash patterns:
\starttext
\startMPcode
pickup pencircle scaled 1bp;
drawarrow origin -- (5cm, 4cm) dashed evenly;
pickup pensquare scaled 1bp;
drawarrow origin -- (5cm,-4cm) dashed evenly;
\stopMPcode
\stoptext
Note that the second arrow is not dashed at all! This is not due to the
thick pen.
Aditya
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Square pens and dash pattern
2016-04-05 23:44 Square pens and dash pattern Aditya Mahajan
@ 2016-04-06 0:59 ` Alan BRASLAU
2016-04-06 7:52 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Alan BRASLAU @ 2016-04-06 0:59 UTC (permalink / raw)
To: Aditya Mahajan; +Cc: mailing list for ConTeXt users
On Tue, 5 Apr 2016 19:44:33 -0400
Aditya Mahajan <adityam@umich.edu> wrote:
> There appears to be a metapost bug with square pens and dash patterns:
I confirm that dashed anything with a pensquare does not dash.
Alan
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Square pens and dash pattern
2016-04-05 23:44 Square pens and dash pattern Aditya Mahajan
2016-04-06 0:59 ` Alan BRASLAU
@ 2016-04-06 7:52 ` Hans Hagen
2016-04-06 8:01 ` luigi scarso
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2016-04-06 7:52 UTC (permalink / raw)
To: ntg-context
On 4/6/2016 1:44 AM, Aditya Mahajan wrote:
> Hi,
>
> There appears to be a metapost bug with square pens and dash patterns:
>
> \starttext
>
> \startMPcode
> pickup pencircle scaled 1bp;
> drawarrow origin -- (5cm, 4cm) dashed evenly;
> pickup pensquare scaled 1bp;
> drawarrow origin -- (5cm,-4cm) dashed evenly;
> \stopMPcode
>
> \stoptext
>
> Note that the second arrow is not dashed at all! This is not due to the
> thick pen.
pencircles make simple round pens that are mapped directly onto ps
primitives and there dashing applies (dashing is just passing data to
the backend) ... afaik other penshapes can result in a filled path so no
dashing applies
(but mp master luigi will tripple check it in the source for you so he
might come up with another answer)
(and after that, as mathematical challenge, alan will write a mp macro
that fakes the dashing)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Square pens and dash pattern
2016-04-06 7:52 ` Hans Hagen
@ 2016-04-06 8:01 ` luigi scarso
0 siblings, 0 replies; 4+ messages in thread
From: luigi scarso @ 2016-04-06 8:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1940 bytes --]
On Wed, Apr 6, 2016 at 9:52 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 4/6/2016 1:44 AM, Aditya Mahajan wrote:
>
>> Hi,
>>
>> There appears to be a metapost bug with square pens and dash patterns:
>>
>> \starttext
>>
>> \startMPcode
>> pickup pencircle scaled 1bp;
>> drawarrow origin -- (5cm, 4cm) dashed evenly;
>> pickup pensquare scaled 1bp;
>> drawarrow origin -- (5cm,-4cm) dashed evenly;
>> \stopMPcode
>>
>> \stoptext
>>
>> Note that the second arrow is not dashed at all! This is not due to the
>> thick pen.
>>
>
> pencircles make simple round pens that are mapped directly onto ps
> primitives and there dashing applies (dashing is just passing data to the
> backend) ... afaik other penshapes can result in a filled path so no
> dashing applies
>
> (but mp master luigi will tripple check it in the source for you so he
> might come up with another answer)
>
> (and after that, as mathematical challenge, alan will write a mp macro
> that fakes the dashing)
>
> Hans
>
>
# cat test-square.mp test-circle.mp
beginfig(1);
tracingall;
%pickup pencircle scaled 1bp;
%drawarrow origin -- (5cm, 4cm) dashed evenly;
pickup pensquare scaled 1bp;
drawarrow origin -- (5cm,-4cm) dashed evenly;
endfig;
end.
beginfig(1);
tracingall;
pickup pencircle scaled 1bp;
drawarrow origin -- (5cm, 4cm) dashed evenly;
%pickup pensquare scaled 1bp;
%drawarrow origin -- (5cm,-4cm) dashed evenly;
endfig;
end.
# mpost test-square.mp
says, near the end,
Edge structure at line 7 (just shipped out):
Filled pen stroke :
(0,0)..controls (47.24408,-37.79527) and (94.48817,-75.59053)
..(141.73225,-113.3858)
dashed (on 3 off 3) shifted 0 (this will be ignored)
while
# mpost test-circle.mp
says
Edge structure at line 7 (just shipped out):
Filled pen stroke :
(0,0)..controls (47.24408,37.79527) and (94.48817,75.59053)
..(141.73225,113.3858)
dashed (on 3 off 3) shifted 0
So it doesn't look a mpost bug .
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 3490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-06 8:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05 23:44 Square pens and dash pattern Aditya Mahajan
2016-04-06 0:59 ` Alan BRASLAU
2016-04-06 7:52 ` Hans Hagen
2016-04-06 8:01 ` luigi scarso
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).