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

File not rendering in openSCAD #53

Open
Na-Cly opened this issue Dec 27, 2017 · 19 comments
Open

File not rendering in openSCAD #53

Na-Cly opened this issue Dec 27, 2017 · 19 comments

Comments

@Na-Cly
Copy link

Na-Cly commented Dec 27, 2017

Tested the same file from the things folder in openSCAD for windows and openSCAD for ubuntu.

Sits at "Rendering Polygon Mesh using CGAL..." with 0/1000.

Please advise.

@jaredjennings
Copy link

I saw that same sort of behavior, and chanced to leave it alone once. After like five minutes, it jumped to 400 and started counting. Have you tried leaving it to run for what seems to be an obscene amount of time?

If you don't want to run the Clojure code you can look at the rendered STL files; if you do run the code, you can turn the detail down to get an scad file that will render much faster.

Hope one of these helps; let me know.

@Na-Cly
Copy link
Author

Na-Cly commented Dec 27, 2017

I'm planning on modifying the dactyl into a mini dactyl, so I'm using the clojure code to do that. I'm not sure if my laptop cpu just can't handle it, but i left it for 30 minutes with no success.

EDIT: Ohh, sorry just saw the detail. Will definitely turn that down. Thanks

EDIT2: I can't find the details setting. Is it in the file itself, or is it a setting within clojure?

@Na-Cly
Copy link
Author

Na-Cly commented Dec 27, 2017

I found the resolution setting and lowered it to 1. The inital render loads much more quickly, but when I try to press f6 so that I can export it as an STL file it does the same thing as before. Let me know if you guys have any ideas.

@Na-Cly
Copy link
Author

Na-Cly commented Dec 27, 2017

Also this is what the inital render looks like when I download the openSCAD file from github.

https://i.imgur.com/sENxsUa.png

@manolodeinternet
Copy link

manolodeinternet commented Dec 27, 2017 via email

@Na-Cly
Copy link
Author

Na-Cly commented Dec 27, 2017

@xcode-manolo I'm wanting to drop the amount of keys down to 32, only 2 thumb keys, and have it printable in a very small area 120mm^3.

@manolodeinternet
Copy link

manolodeinternet commented Dec 27, 2017 via email

@jaredjennings
Copy link

i also don't have a large enough print volume for the whole thing, but i've set out to print a full-size keyboard in pieces and glue them together.

don't miss the lightcycle.clj; it might be more customizable for small keyboards.

as for the openscad screenshot, you have me baffled.

@Na-Cly
Copy link
Author

Na-Cly commented Dec 28, 2017

I'm wondering if the render is just failing on my laptop core i5. I'll try it on something with more power at some point.

@Na-Cly
Copy link
Author

Na-Cly commented Dec 28, 2017

Tried it on another computer. The preview showed up correctly, but the file did not render. I had left it for about 10 minutes.

@orcinus
Copy link

orcinus commented Dec 28, 2017

Have the same issue. Sits at 127/1000 for ages (on a 3.6 GHz i7 core).
Tried leaving it for 20 minutes or so, hasn't moved.

Additionally, the pre-generated STLs are full of issues that cause various slicers to do weird things, even after running it through the Netfabb cloud service.

@orcinus
Copy link

orcinus commented Dec 28, 2017

Found a solution. Well, kinda.
It renders fine in old OpenSCAD (2013-06 for example), except it takes about 2 hours or more.

Also doesn't have problems with self intersections and malformed polys either.

@orcinus
Copy link

orcinus commented Dec 29, 2017

Scratch that last bit.
Some parts still have self intersections.

@mcdviii
Copy link

mcdviii commented Aug 8, 2018

So these are issues with OpenSCAD updates, specifically?

@orcinus
Copy link

orcinus commented Aug 8, 2018

Yes and no.
The parametric geometry isn't too clean, and OpenSCAD is notoriously bad at doing booleans on more complex geometry, often crashing and resulting in self-intersections.

Since the algorithms changed from version to version, some have more luck with some edge cases, others with some others.

@mcdviii
Copy link

mcdviii commented Aug 9, 2018

Is there something more robust & stable that the project should be ported to?

Maybe something like Antimony?

@jaredjennings
Copy link

Judging from the searching I've done every time I hit a roadblock, OpenSCAD and its underlying CGAL library are the only thing in this area with staying power. libfive looks interesting but has no hull function, upon which this code depends a lot.

@orcinus
Copy link

orcinus commented Aug 9, 2018

Yeah, unfortunately, the only algos more robust, as well as mesh repair code that's actually decent, is closed source / proprietary stuff. CGAL is here to stay.

@orcinus
Copy link

orcinus commented Aug 9, 2018

Antimony is interesting, but i think it'd be a bit more of a pain to work in, as you'd need to write a ton of missing semi-primitive stuff first. Fun fact - the author of Antimony works at Formlabs.

mostley referenced this issue in mostley/blender-dactyl-keyboard Nov 14, 2021
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

5 participants