Thu, 03/09/2017 - 23:52
Forums:
Dear OCCT enthusiasts,
I would need a small terminal application in linux, which takes a step and/or iges file as input and writes out an stl file of this geometry. Optionally it would be great if I could set the refinement of the surface triangulation of the stl file, but this is not a must.. It would be something like the Import Export application which comes with the full installation of Open Cascade only without the gui..
I can do it over the existing gui application if I have to convert a couple of files, but if I have to convert >100 files the clicking becomes tedious.
Would this be possible in your eyes? Which headers and c-Files would I have to compile? I appreciate any help. Thanks!
József
Fri, 03/10/2017 - 08:01
Hello Jozsef,
If you are experienced in C++ programming, you might create a simple console application based on the code of our Import Export sample GUI application.
Have a look at the file .\opencascade-7.1.0\samples\mfc\standard\Common\ImportExport\ImportExport.cpp, methods such as:
CImportExport::ReadSTEP
CImportExport::SaveSTL
Best regards,
Forum supervisor