I’ve put together a new batch processing tool called MultiMesh Scripting that simplifies the process of using meshlabserver on Windows. The scripts provide an easy way to batch covert mesh formats, and create a standardized method for applying a MeshLab MLX filter script to a folder of laser scan or photogrammetry reconstructed geometry files.
The MultiMesh Scripting .BAT scripts are open source files that are available as a free download. You can download a copy here:
You can follow the MultiMeshScripting Github page for updates to the toolset.
These scripts use meshlabserver to drive the conversions. To get a copy of meshlabserver you need to download the latest copy of MeshLab (which is free) from VCG:
For the MultiMesh Scripting software to work it has to be expanded and moved to the folder:
The MultiMesh Scripting tools expect MeshLab & meshlabserver to be located at:
You can edit the two MultiMeshScripting .bat scripts if you installed MeshLab to another location on your hard disk.
v1.1 – 2017-02-14
The new MeshLab version 2016.12 release has changed the flag that is used to define the output mesh options from the previous -om command line flag to the new and slightly different -o -m mode. The MultiMesh Scripting .bat scripts have been updated and revised to accommodate for those differences in command line syntax.
Batch Script Notes
I created the following .bat scripts to show what is possible:
Processes the mesh files in the input folder using meshlabserver and a user defined MLX script
Converts the meshes in the input folder using a meshlabserver with a user defined output format.
Changing Input & Output File Names
To change the name of the input and output files you can edit the .bat scripts using a plain text editor.
Input Mesh File variables
rem Note: You can choose a specific mesh format for input or
rem use an asterix for all files in the input meshes folder
rem @set inputMeshFormat=obj
rem @set inputMeshFormat=*
Output Mesh File variables
rem @set outputMeshFormat=ply
rem Note: If you use the PLY output format it is saved as a BINARY PLY file
rem @set outputMeshFormat=u3d
MLX script file variables
rem the MLX scripts are stored in the C:\multiMeshScripting\scripts folder