← 返回命令列表

Linux command

meshlabserver 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Apply filter script to mesh

meshlabserver -i [input.obj] -o [output.obj] -s [script.mlx]

Convert mesh format

meshlabserver -i [input.stl] -o [output.ply]

Apply script with log

meshlabserver -i [input.obj] -o [output.obj] -s [script.mlx] -l [log.txt]

Save output with vertex colors and normals

meshlabserver -i [input.obj] -o [output.ply] -m vc vn

Process a MeshLab project file

meshlabserver -p [project.mlp] -s [script.mlx] -w [output_project.mlp]

Dump a list of all available filter functions

meshlabserver -d [filters.txt]

说明

meshlabserver is the command-line (headless) interface for MeshLab. It allows batch processing of 3D meshes non-interactively using filter scripts exported from the MeshLab GUI. It supports mesh format conversion, project file processing, and automation of mesh processing workflows.

参数

-i _file_
Input mesh file to be loaded (OBJ, STL, PLY, OFF, etc.).
-o _file_
Output mesh file. Format determined by extension.
-s _file_
MeshLab filter script file (.mlx), created from MeshLab GUI via Filters > Show current filter script. Must be in XML format.
-l _file_
Log file for filter processing output.
-p _file_
MeshLab project file (.mlp) to be loaded.
-w _file_
Output MeshLab project file (.mlp) to be saved.
-x
Used with -w. Overwrite 3D model files in the input project instead of creating new output files with an _out suffix.
-d _file_
Dump a list of all available filtering functions to a text file.
-m _options_
Mesh attributes to save. Vertex: vc (color), vf (flags), vq (quality), vn (normals), vt (texcoord), vr (radius). Face: fc (color), ff (flags), fq (quality), fn (normals). Wedge: wc (color), wn (normals), wt (texcoord). Format: mp (polygonal), sa (ASCII).

FAQ

What is the meshlabserver command used for?

meshlabserver is the command-line (headless) interface for MeshLab. It allows batch processing of 3D meshes non-interactively using filter scripts exported from the MeshLab GUI. It supports mesh format conversion, project file processing, and automation of mesh processing workflows.

How do I run a basic meshlabserver example?

Run `meshlabserver -i [input.obj] -o [output.obj] -s [script.mlx]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i _file_ do in meshlabserver?

Input mesh file to be loaded (OBJ, STL, PLY, OFF, etc.).