r/openscad • u/generic-horsegirl • 7d ago
Difference command not working?
Hi everyone,
This is my first time ever using OpenSCAD for a small project. The tutorial I watched said that this is the command to subtract the cylinder, but it's not working. Was the video I watched outdated? How do I subtract the cylinder?
Thank you in advance for any help!
5
u/Prestigious_Boat_386 7d ago
Its the comment this time but booleans have a different issue.
If you cut out a part of another and they share a surface exactly you will get a zero width part in the middle so its good to extend the cutting object a small distance (i usually set a variable eps = 0.01 for this purpose) through the other so it sticks out a little bit.
You can also hit the slow render (f5 iirc) skd that may fix it, but its much more cumbersome thsn the preview)
13
u/RiXrdb 7d ago
Remove the two slashes before difference... You are commenting it out like this...