Added deep copy utility for stl_file.
The function allows to copy stl_file and create an independent instance. Some members are not copied, because they are used only internally by some procedures (see comments).
@gladk If we are to add a small test program (in c) that uses this and exports various different STLs would you be able to help us wrap it in cmaketests to verify which files are identical and which are different?
Yes, sure! Please commit this test program here, so I will integrate this change into this pull request.
@gladk How should the test program look like? Probably a standalone C code that takes a STL filename as an argument, opens and copies the file, runs a series of repairs and then export the copied mesh for comparison using CMakeTest or should the assertions be done directly in the test program? Like comparing the internal stl_file structures etc. Please tell what's the best for you to work with :).