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

Example beamChain-1.scad Appears to be Broken #51

Open
LenStruttmann opened this issue Apr 1, 2024 · 3 comments
Open

Example beamChain-1.scad Appears to be Broken #51

LenStruttmann opened this issue Apr 1, 2024 · 3 comments

Comments

@LenStruttmann
Copy link

It appears that example beamChain-1.scad is broken. I get the following error:

Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
WARNING: Unable to convert translate(undef) parameter to a vec3 or vec2 of numbers in file beamChain-1.scad, line 16
TRACE: called by 'translate' in file beamChain-1.scad, line 16
TRACE: called by 'linear_extrude' in file beamChain-1.scad, line 13
Execution aborted

I am running OpenSCAD daily OpenSCAD-2024.03.23-x86-64.

@JeroenEeuwes
Copy link

I just installed a snap of openscad-nightly (from https://snapcraft.io/install/openscad-nightly/ubuntu ) and it does work, but only if I tell it where the libraries are located. SO from my terminal/console I need to run this:
OPENSCADPATH=~/.local/share/OpenSCAD/libraries openscad-nightly

Mine also gives an warning on line 16. That warning goes away if I change line 16 to this:
translate([0,0,0]){
Perhaps in your version this warning is somehow preventing the rendering altogether?

@LenStruttmann
Copy link
Author

Yes, mine does not render because I have the option Stop on first warning enabled. It was this warning that I was reporting.

@JeroenEeuwes
Copy link

Yes, mine does not render because I have the option Stop on first warning enabled. It was this warning that I was reporting.

I don't think that's the default setting in OpenSCAD. I think it would be helpful if you mentioned in your first message that you already knew it was due to the warning on the translate keyword and that you setup your OpenSCAD to stop on warnings. http://www.catb.org/~esr/faqs/smart-questions.html

I got that warning in my normal OpenSCAD installation too, so I wouldn't have had to install a nightly build to see if something was changed in OpenSCAD itself.

If you change the line I mentioned above in your system it should work.

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