CadQuery/cadquery-contrib

3D Printer Extruder Support Example Broken In CQ 2.0

Open

#3 建立於 2019年12月5日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (15 fork)github user discovery
buggood first issue

倉庫指標

Star
 (63 star)
PR 合併指標
 (PR 指標待抓取)

描述

It looks like this example was broken in the transition to PythonOCC. It fails in both CQ-editor and the jupyter_cadquery extension. Here's a jupyter_lab stack trace from this issue: https://github.com/bernhard-42/jupyter-cadquery/pull/8

IndexError                                Traceback (most recent call last)
<ipython-input-1-5f4eaaefbfe8> in <module>
    141 # add reinforcement holes
    142 cutout_rad -= 2*cutout_offset
--> 143 res = res.faces('>Z').workplane().\
    144           pushPoints([(-cutout_rad, -main_plate_thickness/4),
    145                       (cutout_rad, -main_plate_thickness/4)]).\
...
IndexError: list index out of range

貢獻者指南