How utlco/utl-tcnc works
TCNC is an Inkscape extension and standalone CLI that turns SVG paths into CNC G-code for tangential 3.5-axis machines. The main workflow is SVG selection and geometry conversion, CAM toolpath processing, then machine-code generation; optional preview and brush-specific operations extend that flow. The source excerpts show key CAM and G-code behavior, but not the full extension orchestration, so uncertain connections are omitted.
Main entry points: tcnc.py TCNC extension · simplecam.py Simple CAM · gcode.py G-code generator · paintcam.py Brush CAM
Components 12
Input and orchestration
- SVG selection
- TCNC extension
src/tcnc/tcnc.py - SVG conversion
src/tcnc/tcnc.py
Toolpath geometry
- Toolpath model
src/tcnc/toolpath.py - Path fillets
src/tcnc/fillet.py - Path offsets
src/tcnc/offset.py
CAM processing
- Simple CAM
src/tcnc/simplecam.py - Brush CAM
src/tcnc/paintcam.py
Machine output
- G-code generator
src/tcnc/gcode.py - SVG preview
src/tcnc/gcodesvg.py
Other components
- Operator
- LinuxCNC machine
Connections 14
- Operator → SVG selection: selects paths
README.rst - SVG selection → TCNC extension: provides selection
- TCNC extension → SVG conversion: converts paths
src/tcnc/tcnc.py - TCNC extension → Brush CAM: configures CAM
src/tcnc/tcnc.py - TCNC extension → G-code generator: configures output
src/tcnc/tcnc.py - TCNC extension → SVG preview: configures preview
src/tcnc/tcnc.py - SVG conversion → Toolpath model: creates paths
- Simple CAM → Toolpath model: processes paths
src/tcnc/simplecam.py - Simple CAM → Path fillets: adds fillets
src/tcnc/simplecam.py - Simple CAM → Path offsets: applies offsets
src/tcnc/simplecam.py - Brush CAM → Simple CAM: extends CAM
src/tcnc/paintcam.py - Brush CAM → G-code generator: emits commands
src/tcnc/paintcam.py - G-code generator → SVG preview: renders preview
src/tcnc/gcodesvg.py - G-code generator → LinuxCNC machine: generates G-code for
README.rst