I often want to remix work by others. This usually relates to moved fixings and openings. I usually heal the original opening and then create a new one to suit my needs. To do this I usually import the original stl and then create a plug, union() the two together and then finally make the new hole using difference().
On 03/24/2016 02:30 AM, macdarren wrote:
> Strangely if I simply import the object by opening it with
> scad it creates a new file with one line:
> This is will both preview and render fine...
This is normal as no CSG operation is done for just the import().
The STL has 17 Zero Faces (polygons without area) which OpenSCAD,
or more specifically libCGAL which is used to do the boolean
operations, does not like.
Using the repair filter in MeshLab as mentioned in the FAQ
fixes the issue for me:
For grins I ran the original STL through Netfabb,
now your code seems to both preview and render fine using the 'fixed' model.
Your fill plug shows as very slightly taller than the original surface of the model. It did this on the earlier prefixed model in the preview to so probably not the result of anything in the repair process.
My guess something odd about the STL file when openscad tried to merge the plug into the shape.