contours_to_gcode — PRINTPATH slice op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.contours_to_gcode(contours: 'Any', z: 'float', layer: 'int' = 0, layer_mm: 'float' = 0.2, line_width_mm: 'float' = 0.4, filament_mm: 'float' = 1.75, feed_mm_min: 'float' = 1800.0) -> 'dict[str, np.ndarray]' (to call the implementation directly, import printpath; printpath.contours_to_gcode(contours: 'Any', z: 'float', layer: 'int' = 0, layer_mm: 'float' = 0.2, line_width_mm: 'float' = 0.4, filament_mm: 'float' = 1.75, feed_mm_min: 'float' = 1800.0) -> 'dict[str, np.ndarray]'; from the registry, opsprintpath.get("contours_to_gcode"))

Usage

Turns contours (the table of mesh_slice_contours) into a table of paths that trace around them (same columns as gcode_read).

A minimal slicer: each ring is traced once in turn, and the extrusion amount is segment length × line width × layer height / filament cross-section area. Between rings there is travel (e = 0). A tool for making synthetic G-code with ground truth; it has no infill or retraction.

Detailed usage guide

• printpath family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_one_stroke_epicycles — py -3.11 examples/poc_one_stroke_epicycles.py

• poc_print_layer_inspection — py -3.11 examples/poc_print_layer_inspection.py

Ops the type connects to (they accept table as input)

gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image

Same category (slice)

mesh_slice_contours · mesh_slice_stack


*Provenance: printpath.py — PRINTPATH operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.