[metapost] straight lines vs. curves (SVG)

Taco Hoekwater taco at elvenkind.com
Mon Apr 27 10:25:58 CEST 2009



Boguslaw Jackowski wrote:
> 
> Hi,
> 
>> On the C implementation side, 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.
> 
> OK, your choice. My choice will be the MP implementation of the straight
> segments with control points overlapped with nodes. ;-)
> 
> More seriously, I agree that a flag is a useful and reasonable
> implementational trick. Still, for further processing of the output, it
> is nice to have "genuine straight" line segments, distinguishable from a
> plethora of weird pseudo-straight lines...
> (e.g., such that look as they were straight lines but acually are loops).

Ok. I will have to decide what to do about precontrol and postcontrol
operators for those "genuine straight" lines anyway, so I could as well
make them return A and B.

Best wishes,
Taco


More information about the metapost mailing list