Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D Printer Extruder Support Example Broken In CQ 2.0 #3

Open
jmwright opened this issue Dec 5, 2019 · 2 comments
Open

3D Printer Extruder Support Example Broken In CQ 2.0 #3

jmwright opened this issue Dec 5, 2019 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jmwright
Copy link
Member

jmwright commented Dec 5, 2019

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: bernhard-42/jupyter-cadquery#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
@jmwright
Copy link
Member Author

@adam-urbanczyk IIRC you created this example originally. I took a shot at fixing this by reverting workplane calls back to using "CenterOfMass". However, the resulting part is still mangled. I looked at the Thingiverse reference, but there are so many images and I can't remember what this one is supposed to look like. If you get a chance can you take a look? I have all the other contrib examples fixed now I think.

@adam-urbanczyk
Copy link
Member

I'll take a look and maybe rewrite - it is quite messy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants