fletcher.paths.miter-bevel-vertex()

Segments of a miter or bevelled corner.

The bevel is specified by a radius, which defines the circle that is tangent to the bevelled face at the face’s midpoint.

Depending on the miter limit, this returns a single segment for a miter join and two line segments for a bevel join, one to point P and the other to Q.

                ┌─ s ─┐
            ┌ d ┼─────┤
****************P─────@-[i-angle]
       ..   │   .**  /
      .     r     .*Q
      .     ╵     ./
      .           /
       ..      ../
         ...... /
               /
          [o-angle]

@ = vertex
* = segments returned by this function

fletcher.paths.miter-bevel-vertex(
  vertex,
  i-angle,
  o-angle,
  radius,
  miter-limit,
)