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]' (implementation को सीधे call करना हो तो import printpath; printpath.mesh_slice_contours(mesh: 'Any', z: 'float', tol: 'float' = 1e-06) -> 'dict[str, np.ndarray]', registry से लेना हो तो opsprintpath.get("mesh_slice_contours"))

उपयोग

triangle mesh को plane z से काटकर मिली contour की table table: column ring (ring क्रमांक), x, y (mm)।

हर triangle और plane के intersection को segment बनाया जाता है, triangle के normal से दिशा दी जाती है (बाहरी contour counter-clockwise, holes clockwise), और endpoints मिलाकर closed rings बनाए जाते हैं (बंद न हों तो open chains) (classic slicer)। ring के signed area से भरा भाग और hole पहचाने जाते हैं। जब कोई vertex ठीक plane पर हो तो degeneracy से बचने के लिए उसे tol जितना ऊपर उठाया जाता है। plane shape को न छुए तो ValueError (खाली layer के लिए "कुछ नहीं है" कहा जाता है)।

उपयोग की विस्तृत guide

• printpath family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_print_layer_inspection — py -3.11 examples/poc_print_layer_inspection.py

वे अगले ops जिनसे type जुड़ता है (table को input के रूप में लेते हैं)

gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image · contours_to_gcode

इसी category के (slice)

mesh_slice_stack · contours_to_gcode


*Provenance: printpath.py — PRINTPATH operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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