JustinSDK / dotSCAD

Reduce the burden of mathematics when playing OpenSCAD
https://openhome.cc/zh-tw/openscad/
GNU Lesser General Public License v3.0
784 stars 107 forks source link

Slicer says "empty layers" with output from sf_thicken/sf_splines? #32

Closed mconsidine closed 1 year ago

mconsidine commented 1 year ago

Hi, I am trying to model an old telescope pier, using measurements that were taken at various vertical intervals on its surface. It looks like this when rendered in openSCAD image

This was modeled using dotSCAD because I needed the smooth curves and it renders without error.

When I pull it into a slicer (e.g. Prusa) though, I get an error saying there are empty layers in the area between the two "cube" calls in openSCAD, ie in the area created by the dotSCAD output. In Meshmixer it renders fine and does not have any issues flagged, that I can see. And using the "repair STL" option of Prusa doesn't fix anything. So I can't figure out where something is going goofy.

I'm wondering if there is any trick I should be aware of in trying to mate surfaces created using sf_thicken/sf_splines? Is there a better way to do this? I thought that by using common edges that I would largely avoid holes/gaps/etc.

I've attached a cleaned up version of the openSCAD file (with a .txt extension). Apologies for it's length.

TIA, mconsidine old_pier_demo.txt

chehsunliu commented 1 year ago

The author of this repository just passed away yesterday: https://www.ithome.com.tw/caterpillar?fbclid=IwAR0O9IAipAnfSZNXGH21IdDJNX-Rg3WDCwnnkGyml5wmf3a4hsE1JiilBI8&mibextid=Zxz2cZ.

mconsidine commented 1 year ago

My condolences. I'm sorry to hear of that. Mconsidine

EDIT: This issue was caused by my having set the wall thickness to be too thin, relative to the printer/slicer settings. There was nothing wrong with the code.

hvegh commented 1 year ago

My condolances, it saddens me to hear this. hve