OpenScad doesn't like to edit some STLs. I see that your code renders OK with F5, but fails with F6. You could try repairing the STL (e.g. with [netfabb.azurewebsites.net] which currently seems to hang so I could not try it). I have a feeling that there is something amiss with that STL, because if I load it into Slic3r and then export as an STL (which will repair some STLs), Silc3r creates an invalid STL.
However the STL shape seems to be fairly simple, so my next step would be to model the entire thing with OpenScad. You can temporarily keep the STL imported to use as a template for your code, rendering with F5 to check dimensions & positions.
Edited 1 time(s). Last edit at 09/07/2016 07:33AM by dmould.
Thank you Dave,
I came to the same conclusion and have designed the part using the original as a guide.
I did try and repair the modified stl but every program I tried did not find any errors.... strange.
It would have been interesting to discover the reason for the error so perhaps I could avoid whatever it is in the future.
appjaws - Ormerod 1, core XYUV Duet wifi, duex5
firmware 1.20.1RC2 Web Server 1.20+1 Web Interface 1.20
OpenSCAD version 2016.02.09 (git 9950e6a)
slic3r-1.38.5-prusa3d and/or Simplify3D 4.0.0