Bezier Miter Join

When line segments join at sharp angles “spikes” are produced. This test image shows at which range they are cut off.

miterjoin

%!PS BezierMiterJoin.ps
2 2 scale
20 20 translate
/a 10 def
0 20 280 {
    /x exch def
    0 0 moveto
    x 300 lineto
    100 200 200 100 300 0 curveto
    } for
10 setlinewidth
strokepath
0 setlinewidth
stroke showpage

Leave a Reply

Your email address will not be published. Required fields are marked *