admesh icon indicating copy to clipboard operation
admesh copied to clipboard

Added deep copy utility for stl_file.

Open andreondra opened this issue 4 years ago • 3 comments

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).

andreondra avatar Apr 11 '22 19:04 andreondra

@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?

hroncok avatar Apr 25 '22 06:04 hroncok

Yes, sure! Please commit this test program here, so I will integrate this change into this pull request.

gladk avatar Apr 25 '22 06:04 gladk

@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 :).

andreondra avatar May 20 '22 17:05 andreondra