Comment 8 for bug 1004084

Revision history for this message
David Mathog (mathog) wrote :

Regarding lower limit for miterlimit - under what circumstances would a miter limit of 1 be appropriate?

The miter limit is the ratio of the mitered join to the line width. If Theta is the angle in degrees (range 0 to 180) of the interior corner formed by the join, W the width of the line, then the miter length is W/(cos(90 -(Theta/2))) giving a ratio of 1/(cos(90 -(Theta/2))). This value can only be as low as 1 on a straight line (180 degrees), in which case the miter limit is pretty much a moot point. So setting miter limit to 1 is equivalent to forcing "bevel" for all joins - which can be done better by actually setting the join to bevel. The lower limit I used was 2, because that allows miters on 90 degree (ratio sqrt(2) = 1.4) and larger angle joins while tripping over to bevel for more acute angles. It isn't at all clear to me that one would ever want to set it as low as 2 (the default value in windows is 10, in inkscape 4), but at least 2 sets a limit such that some joins are mitered and some are beveled.