# 预计算所有有效Panel配置 panels = generate_panels(pcb_w, pcb_h, material_w, material_h, ...) # 后续计算直接使用缓存结果 for panel in panels: # 无需重复计算Panel尺寸