← 返回命令列表

Linux command

admesh 命令

文本

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

常用示例

Display information

admesh [path/to/model.stl]

Repair and output

admesh --write-binary-stl=[output.stl] [input.stl]

Convert STL to ASCII format

admesh --write-ascii-stl=[output.stl] [input.stl]

Fix all defects

admesh --fill-holes --normal-directions --normal-values [input.stl] --write-binary-stl=[output.stl]

Scale a model

admesh --scale=[2.0] [input.stl] --write-binary-stl=[output.stl]

Translate a model

admesh --translate=[10,20,30] [input.stl] --write-binary-stl=[output.stl]

Rotate around the X axis

admesh --x-rotate=[90] [input.stl] --write-binary-stl=[output.stl]

说明

ADMesh is a tool for processing and repairing STL (stereolithography) files used in 3D printing and CAD applications. It diagnoses and fixes common mesh problems including gaps, holes, inverted normals, and disconnected facets that would cause printing failures. When run without output options, ADMesh analyzes the input file and reports statistics including facet count, volume, surface area, and detected errors. The repair algorithms can automatically fix most mesh issues, making it essential for preparing models for 3D printing. ADMesh supports both binary and ASCII STL formats and can convert between them. It also provides transformation operations for scaling, rotating, and translating models without requiring a full CAD application.

参数

--write-binary-stl _file_
Output repaired mesh in binary STL format.
--write-ascii-stl _file_
Output repaired mesh in ASCII STL format.
--fill-holes
Fill holes in the mesh by adding triangles.
--normal-directions
Fix normals to point outward consistently.
--normal-values
Recalculate normal vectors for all facets.
--exact
Only check for perfectly matched edges.
--nearby
Find and connect nearby facets.
--remove-unconnected
Remove facets that cannot be connected.
--scale _factor_
Scale the model by the given factor.
--translate _x,y,z_
Move the model by the specified offset.
--x-rotate, --y-rotate, --z-rotate _angle_
Rotate model around the specified axis (in degrees).
--merge _file_
Merge another STL file into the input.
-v, --verbose
Display detailed processing information.

FAQ

What is the admesh command used for?

ADMesh is a tool for processing and repairing STL (stereolithography) files used in 3D printing and CAD applications. It diagnoses and fixes common mesh problems including gaps, holes, inverted normals, and disconnected facets that would cause printing failures. When run without output options, ADMesh analyzes the input file and reports statistics including facet count, volume, surface area, and detected errors. The repair algorithms can automatically fix most mesh issues, making it essential for preparing models for 3D printing. ADMesh supports both binary and ASCII STL formats and can convert between them. It also provides transformation operations for scaling, rotating, and translating models without requiring a full CAD application.

How do I run a basic admesh example?

Run `admesh [path/to/model.stl]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --write-binary-stl _file_ do in admesh?

Output repaired mesh in binary STL format.