mesh_slice_contours — PRINTPATH slice op

• Data kinds: mesh → table

• Call: import fullseye as fs; fs.ledger.mesh_slice_contours(mesh: 'Any', z: 'float', tol: 'float' = 1e-06) -> 'dict[str, np.ndarray]' (to call the implementation directly, import printpath; printpath.mesh_slice_contours(mesh: 'Any', z: 'float', tol: 'float' = 1e-06) -> 'dict[str, np.ndarray]'; from the registry, opsprintpath.get("mesh_slice_contours"))

• GPU: none (CPU reference implementation only)

Usage

Table of contours table obtained by cutting a triangle mesh with the plane z: columns ring (ring number), x, y (mm).

Make the intersection of each triangle and the plane into a line segment, orient it by the triangle's normal (counterclockwise for the contour, clockwise for the hole), and set the endpoints to Butt them together and connect them into a closed ring (or an open chain if not closed) (classical slicer). The contents and hole can be determined by the signed area of ​​the ring. When the vertex is exactly on the plane, lift it by 2*tol + 1e-12 to avoid degeneration. ValueError if the plane does not touch the shape (An empty layer says "no").

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)

• itokawa_gravity_tour — py -3.11 examples/itokawa_gravity_tour.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 · contours_to_gcode

Same category (slice)

mesh_slice_stack · contours_to_gcode


*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.