Skip to content

map-blasterson/vpype-cfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpype-cfill

A vpype extension for generating concentric fill patterns inside polygons.

Screenshot comparing input solid fill and resulting concentric fill

Installation

From PyPI

PyPI package: https://pypi.org/project/vpype-cfill/

pip install vpype-cfill

From Source

python -m venv env
. env/bin/activate
./build.sh

Usage

Basic Usage

# Generate concentric fill for a rectangle with 2.0 unit spacing
vpype rect 0 0 100 100 cfill --pen-width 2.0mm show

# Process an SVG file
vpype read input.svg cfill -pw 0.125in write output.svg

Command Line Arguments

  • -pw, --pen-width FLOAT: Width of pen/spacing between concentric lines (default: 1.0)
  • '-fh', '--fill-holes': Fill holes in polygons instead of preserving them
  • '-dh', '--discard-hole-borders': Discard original hole border geometry (independent of --fill-holes)
  • '-de', '--discard-exterior': Discard original exterior geometry. Combine with --discard-hole-borders to generate only fill.
  • '-r', '--reverse-ring-draw-order': Draw inner-most ring first, then move outwards to edges. (avoid ink pools)

Examples

# Concentric fill
vpype rect 0 0 50 50 cfill --pen-width 0.5mm show


# Process complex shapes from SVG
vpype read complex_shape.svg linesort cfill -pw 1.2mm linesimplify --tolerance 0.05mm write filled_output.svg

License

MIT License - see LICENSE file for details.

About

A vpype extension for generating concentric fill patterns

Resources

License

Stars

Watchers

Forks

Packages

No packages published