Windows has a tool called 3D Builder, which has a 3D mesh repair feature I use frequently. I would like to be able to use this mesh repair feature in my automated scripts. Although 3D Builder has no command line interface, the underlying functions it uses seem to be available via the Windows API.
- A command-line tool that imports a 3D model (STL format), runs [login to view URL] on it, and exports it (also as an STL file).
- Source code / instructions for how to build the tool myself should I need to make changes later.
Must run on Windows 10 in Windows Terminal (Powershell).
Must run headless (no GUI).
Command-line tool should require two arguments: the path to the input STL, and the path to the desired output STL.
[login to view URL] method: [login to view URL]
Example code that reads, repairs and exports a 3D model file: [login to view URL]
If I understand correctly, this function operates on .3mf files, not .stl files. So there may need to be a conversion to .3mf format after importing, and another conversion before export. 3D Builder does it, so there are probably API functions for it, but I'm not sure where they are.