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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s