ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: z0---z1---z2---z3---cycle strange effect
Date: Thu, 14 Jun 2007 11:24:49 +0200	[thread overview]
Message-ID: <46710961.2000201@elvenkind.com> (raw)
In-Reply-To: <6faad9f00706140159v23817b5rca6b097254d6eaca@mail.gmail.com>



Mojca Miklavec wrote:
> draw z0---z1---z2---z3---cycle withpen pencircle scaled 5pt;
> 
> resulting in
> 
> newpath
> 14.17323 42.51968 moveto
> 14.17139 42.52553 70.85913 70.86505 70.86613 70.86613 curveto
> 70.88313 70.86877 184.25645 14.18352 184.25194 14.17323 curveto
> 184.2461 14.15994 70.87599 42.51889 70.86613 42.51968 cureveto
> 70.86118 42.52008 14.17513 42.5137 14.17323 42.51968 curveto
> closepath
> 
> If you ask me, this looks pretty much like a rendering bug in Mac's
> Preview (if anyone bothers about that, please do that), 

agree

> but on the
> other hand metapost could have generated a shorter & cleaner output as
> well:
> 
> newpath
> 14.17323 42.51968 moveto
> 70.86613 70.86613 lineto
> 184.25194 14.17323 lineto
> 70.86613 42.51968 lineto
> 14.17323 42.51968 lineto
> closepath

It would have done that, if the input would have been:

   draw z0--z1--z2--z3--cycle withpen pencircle scaled 5pt;

Small differences like this should not be removed automatically, in
my opinion, as they will be visible if the image is to be printed
as a poster (A0 format).

> I suspect that the problem lies in control points of bezier curve
> which are way too close to original points and thus lead to problems
> with numerical precision, but I didn't experiment much deeper, so my
> assumption might be wrong.

Almost certainly, but rounding errors are not an excuse for obviously
incorrect rendering.

Best wishes, Taco

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      parent reply	other threads:[~2007-06-14  9:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04 23:05 David Arnold
2007-06-14  8:59 ` Mojca Miklavec
2007-06-14  9:04   ` Mojca Miklavec
2007-06-14 11:03     ` Alan Bowen
2007-06-14  9:24   ` Taco Hoekwater [this message]

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=46710961.2000201@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=mojca.miklavec.lists@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).