vsketch.fill#

Overview#

Function#

generate_fill(poly, pen_width, stroke_width)

Draw a fill pattern for the input polygon.

Functions#

vsketch.fill.generate_fill(poly: shapely.geometry.Polygon, pen_width: float, stroke_width: float) vpype.LineCollection#

Draw a fill pattern for the input polygon.

The fill pattern should take into account the stroke width.

Parameters:
  • poly -- polygon to fill

  • pen_width -- pen width on paper

  • stroke_width -- width of the stroke (accounting for stroke pen width and weight)

Returns:

fill paths