Idolcrasher Wrote:
-------------------------------------------------------
> Who can do it?
You, easily.
1) If you have the openscad file which created the object you could hack that to add at the end the shapes and make a boolean operation (substraction) between the initial result and two new rectangles created to enclose the object (mould sides).
2) If only a stl is available, i dunno what openscad can do with that alone. Try freecad 0.12. Import the stl, create its shell, convert it to solid, boolean substractions, test the outputs. Something like (part module) create shape from mesh -> convert to solid. Then you can use a boolean operation between that object and the two new rectangles that you created to enclose the primary object. Export as stl then open it and -> analyze -> evaluate and repair mesh ... to check your negative mould parts for solidity or faces degeneration.
Also you could try this with some of the programs that deal with meshes directly (e.g. blender, wings, etc), but in my experience those have problems, e.g. after few operations a complex object is no longer solid and lots of mesh errors pop up. Programs which deal with objects tend to have cleaner output, because the final stl/mesh is only created at the moment of export, and hence its optimized for its shape and not for previous operations, so it does not suffer from those at all. For this reason IMHO freecad doing the boolean substraction at a "reconstructed object" level is better than pure mesh programs. Freecad also can analyze itself the final output mesh part for solidity and faces issues (analyze menu in mesh module), and is in Python and scriptable/macro-able. I think the reason why its not wider used, is just because is sort of fresh development (in terms of years lol coz its that slow), and although is still far from being fully developed, at least now it reached a stage from where it can be somewhat useful like this.