MESHLABSERVER(1) | General Commands Manual | MESHLABSERVER(1) |
meshlabserver
—
The open source batch mesh processing system
meshlabserver |
[-d output] |
meshlabserver |
[-l logfile]
[-p projectfile]
[-w outputprojectfile
[-x ]] [-i
meshfile] ... [-o
outfile [-l
opt_layer] [-m
opt_mask]] [-s
scriptfile] |
meshlabserver
allows batch-processing
usage of functionality available in the interactive
meshlab(1) application.
The arguments are as follows:
-d
output-l
logfile-p
projectfile-w
outputprojectfile [-x
]-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.-i
file-o
outfile [-l
opt_layer] [-m
opt_mask]-l
opt_layerc
’x
’-m
opt_maskvc
’vf
’vq
’vn
’vt
’vr
’fc
’ff
’fq
’fn
’wc
’wn
’wt
’mp
’sa
’-s
scriptfileThere 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.
The meshlabserver
utility exits 0
on success, and >0 if an error occurs.
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 -i input.obj -o
output.ply -m vc fq wt -s meshclean.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 -i input.obj -o
output.ply -l 2 -m vc fq wt -o output_last.ply -l l -s
meshclean.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 -l logfile.txt -p
proj.mlp -i input.obj -w outproj.mlp -s meshclean.mlx
Paolo Cignoni - Visual Computing Lab - ISTI - CNR
March 5, 2020 | Debian |