[metapost] straight lines vs. curves (SVG)
Hartmut Henkel
hartmut_henkel at gmx.de
Mon Apr 27 23:12:22 CEST 2009
On Mon, 27 Apr 2009, Mojca Miklavec wrote:
> On Mon, Apr 27, 2009 at 09:33, Taco Hoekwater wrote:
> >
> > it is much easier&faster to check for
> > a straightness flag in the knot node than to check the control point
> > locations, so it is almost certain that the executable would not use
> > the pre- and postcontrol points at all for straight segments.
>
> Hans just needs to make sure that his "unitsquare randomized" will
> still work after adding the flag :)
>
> I find Jacko's idea interesting :), but if you implement this flag
> (which is probably more reliable) it might make sense to keep the
> control points at 1/3, 2/3 where they are now
yes, i guess they should always be recovered, and the magic point with
these 1/3 and 2/3 is (this got not clear from the recent discussion, but
it seems that Boguslaw mentioned it in an e-mail in 2005), that such
control points give a constant travel speed on the line between A and B
for the inbetween parameter t running from 0=A to 1=B.
Regards, Hartmut
More information about the metapost
mailing list