gcode op• 資料種類:text → table
• 呼叫: import fullseye as fs; fs.ledger.gcode_read(path: 'str', layer_from: 'str' = 'auto') -> 'dict[str, np.ndarray]'(要直接呼叫實作,import printpath; printpath.gcode_read(path: 'str', layer_from: 'str' = 'auto') -> 'dict[str, np.ndarray]';從台帳取用則 opsprintpath.get("gcode_read"))
> 該運算子的說明尚無譯文,以下照原文給出。
G-code(RepRap / Marlin 系)を線分の表 `table に読む: 列 x0 y0 z0 x1 y1 z1(mm)、e`(その線分で
押し出したフィラメント長 mm、移動だけなら 0)、`f(送り mm/min)、layer`(層番号)。
解釈するのは G0 / G1(直線移動)、G90 / G91(座標の絶対 / 相対)、M82 / M83(E の絶対 / 相対)、G92(座標の
リセット)、G20 / G21(インチ / mm)、`;` コメント。円弧 G2 / G3 は扱わない(黙って直線にせず ValueError ——
スライサで直線に展開して出力すること)。層は `layer_from="tag" なら ;LAYER:n のコメント、"z"` なら押し出し
を伴う Z の増加で切る。`"auto"` はタグがあればタグ、無ければ Z。座標が一度も与えられないまま押し出す行は
ValueError(方言の穴を黙って 0 で埋めない)。
>>> t = gcode_read("part.gcode")
>>> t["e"].sum() # 押し出したフィラメントの総長 [mm]
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者・年份)與用途見上面的族使用指南。
• poc_print_layer_inspection — py -3.11 examples/poc_print_layer_inspection.py
table 作為輸入)gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image · contours_to_gcode
gcode)gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image
*Provenance: printpath.py — PRINTPATH 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.