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

Unable to union shapes with modifiers #35

Closed
aldencolerain opened this issue Jul 30, 2023 · 2 comments
Closed

Unable to union shapes with modifiers #35

aldencolerain opened this issue Jul 30, 2023 · 2 comments

Comments

@aldencolerain
Copy link

Shapes with modifiers can be unioned in OpenSCAD, but this does not work as expected in SolidPython. This is my first time using SolidPython, so I may be missing something basic.

This works:

#! /usr/bin/env python

from solid2 import *

geo = cube(1).debug() + cube(1).translate(1, 1, 0)
geo.save_as_scad()

This doesn't work:

#! /usr/bin/env python

from solid2 import *

geo = cube(1).debug() + cube(1).translate(1, 1, 0).debug()
geo.save_as_scad()

It fails with the error:

TypeError: unsupported operand type(s) for +: 'debug' and 'debug'
@jeff-dh
Copy link
Owner

jeff-dh commented Jul 30, 2023

That was indeed a bug.

Should be fixed in the latest head.....

@jeff-dh jeff-dh closed this as completed Jul 30, 2023
@aldencolerain
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants