meshlabserver — The open source batch mesh processing system
Contents
Description
meshlabserver allows batch-processing usage of functionality available in the interactive meshlab(1)
application.
The arguments are as follows:
-doutput
dump on a text file a list of all the filtering functions
-llogfile
log of the filters is output on a file
-pprojectfile
meshlab project ( .mlp ) to be loaded
-woutputprojectfile [-x]
output meshlab project (.mlp) to be saved. If -x flag is specified, any 3D model file(s)
meshfile.ext contained in the input project will be overwritten. Otherwise, for an input
filename of meshfile.ext, the model will be saved in the same directory of input mesh as a new
file called meshfile_out.ext. ALL the mesh attributes will be exported in the saved files.
-ifile
mesh that has to be loaded
-ooutfile [-lopt_layer] [-mopt_mask]
the name of the file where to write the current layer of the project.
-lopt_layer
Save the specified layer to the chosen filename. Valid values for opt_layer can be
A number in the range [0, last_layer_in_the_project]
to indicate the desired layer by its index.
‘c’ indicate the CURRENT layer in the project
‘x’ indicate the LAST layer in the project
-mopt_mask
the listed mesh attributes will be saved in the output file. The parameter opt_mask can
be a space-separated list of the following attributes:
‘vc’ vertex colors
‘vf’ vertex flags
‘vq’ vertex quality
‘vn’ vertex normals
‘vt’ vertex texture coords
‘vr’ vertex radius
‘fc’ face colors
‘ff’ face flags
‘fq’ face quality
‘fn’ face normals
‘wc’ wedge colors
‘wn’ wedge normals
‘wt’ wedge texture coords
‘mp’ polygonal mesh info
‘sa’ save in ascii format
-sscriptfile
the script to be applied. Must be in the xml format saved by MeshLab.
Examples
Apply the script contained in the file meshclean.mlx to the mesh contained in input.obj. Save the per-
vertex-color, the per-face-quality, and the per-wedge-texture attributes contained in the current layer
into output.ply.
$meshlabserver-iinput.obj-ooutput.ply-mvcfqwt-smeshclean.mlx
Apply the script contained in the file meshclean.mlx to the mesh contained in input.obj. Save the per-
vertex-color, the per-face-quality and the per-wedge-texture attributes contained in the layer 2 (if it
exists!) into output.ply. Save the last layer of the project to output_last with the default geometric
attributes.
$meshlabserver-iinput.obj-ooutput.ply-l2-mvcfqwt-ooutput_last.ply-ll-smeshclean.mlx
Apply the script contained in the file meshclean.mlx to the mesh composed of input0.obj and input1.ply.
Make input1.ply the current mesh of the project (i.e. the mesh to which the filters operating on a single
model will be applied). Generate a new output project outproj.mlp containing references to input0.obj
and input1.ply. The files input0.obj and input1.ply will be overwritten. A log will be written to
logfile.txt.
$meshlabserver-llogfile.txt-pproj.mlp-iinput.obj-woutproj.mlp-smeshclean.mlxExit Status
The meshlabserver utility exits 0 on success, and >0 if an error occurs.
Name
meshlabserver — The open source batch mesh processing system
Notes
There can be multiple meshes loaded and the order they are listed matters because filters that use meshes
as parameters choose the mesh based on the order.
The format of the output mesh is guessed by the used extension.
See Also
meshlab(1)
Synopsis
meshlabserver [-doutput]
meshlabserver [-llogfile] [-pprojectfile] [-woutputprojectfile [-x]] [-imeshfile] ... [-ooutfile
[-lopt_layer] [-mopt_mask]] [-sscriptfile]
