Welcome! Log In Create A New Profile

Advanced

Zero-width faces left over from difference (openscad)

Posted by Montiey 
Zero-width faces left over from difference (openscad)
November 23, 2015 08:50PM
I found openscad a couple of weeks ago. It's pretty cool and everything I've done so far has seemed logical, but now this is stumping me.
This code is a bit hard to read, but my problem is the thin wall to the right of the main object. I have a way around this, but I was just curious what might be causing this. All the objects I use to subtract with are exactly the size they need to be, and this causes fuzzy half-existing faces in the preview render, but nothing every stays in the full render.
The photo is attached with the model file..

Edited 1 time(s). Last edit at 11/23/2015 08:51PM by Montiey.


Master Tinkerer
Attachments:
open | download - Spare Change Rack.scad (1.5 KB)
open | download - Screen Shot 2015-11-23 at 8.49.14 PM.png (76.5 KB)
Re: Zero-width faces left over from difference (openscad)
November 23, 2015 08:54PM
My OpenSCAD 2015.03 on Linux Mint 17.2 does that also. As long as it looks right in a full render F6 it seems to slice and print OK.
Re: Zero-width faces left over from difference (openscad)
November 23, 2015 09:58PM
that's what happens in slic3r for me to.. "nope! too thin.. ignoring.."


Master Tinkerer
Re: Zero-width faces left over from difference (openscad)
November 25, 2015 10:53PM
That's a well-known artifact in openscad when subtracting two objects that have the same dimension. As you say, it goes away in the rendering. The typical way around it is to make the dimension of the object being subtracted slightly larger. I typically add 0.01mm and it works fine.

It you're worried about the effect of doing this on the final rendering, instead of using a literal value, use a variable, set it to 0.01 when designing, and then set it to 0 for the final rendering.
Sorry, only registered users may post in this forum.

Click here to login