ADMESH(1)
Okay bestie, welcome to the ADMESH(1) page, the General Commands Manual entry for ADMesh, so it's official and it's giving main character π π
β¨ NAME β¨
ADMesh π is a program for processing triangulated solid meshes π«Ά
π SYNOPSIS π
admesh [OPTION]... file
πΈ DESCRIPTION πΈ
Okay so, ADMesh is a program for processing triangulated solid meshes β¨ Right now it only reads the STL file format (the one used for rapid prototyping apps), but it can write STL, VRML, OFF, and DXF files too π
By default, ADMesh runs all of the mesh checking and repairing options on your input file π₯ That means it checks exact, nearby, remove-unconnected, fill-holes, normal-directions, and normal-values. The file type (ASCII or binary) gets detected automatically π§ Your input file is not modified unless you ask for it with the --write option π So if you type this:
admesh sphere.stl
ADMesh opens and reads sphere.stl, checks it, fixes anything that needs fixing, and prints the results. The results are not saved π
The default tolerance is the length of the shortest edge of the mesh π The default number of iterations is 2, and the default increment is 0.01% of the diameter of a sphere that encloses the entire mesh β¨
β οΈ If you give any of--exact,--nearby,--remove-unconnected,--fill-holes,--normal-directions,--reverse-all,--normal-values, or--no-check, then ADMesh skips every other check, except the ones you ask for or the ones it needs before your chosen check can run π€
For example, this command:
admesh --remove-unconnected sphere.stl
would first do an exact check, since it's required, and then remove the unconnected facets. The results get printed and no other checks happen π¦
π OPTIONS π
--x-rotate=angleβ Spin it counter-clockwise (CCW) around the x-axis by angle degrees π--y-rotate=angleβ Spin it CCW around the y-axis by angle degrees π--z-rotate=angleβ Spin it CCW around the z-axis by angle degrees π--xy-mirrorβ Mirror it across the xy plane πͺ--yz-mirrorβ Mirror it across the yz plane πͺ--xz-mirrorβ Mirror it across the xz plane πͺ--scale=factorβ Scale the file by factor, which means multiply by factor π--translate=x,y,zβ Translate (move) the file to x, y, and z π--merge=nameβ Merge the file called name with your input file π«-e,--exactβ Only check for perfectly matched edges π-n,--nearbyβ Find and connect nearby facets, and fix the bad ones π§-t,--tolerance=tolβ Set the initial tolerance for the nearby check to tol π―-i,--iterations=iβ Set the number of iterations for the nearby check to i π-m,--increment=incβ How much to bump the tolerance by after each iteration, inc π-u,--remove-unconnectedβ Remove facets that have 0 neighbors ποΈ-f,--fill-holesβ Add facets to fill holes π³οΈ-d,--normal-directionsβ Check and fix the direction of the normals (i.e. cw, ccw) π§--reverse-allβ Reverse the directions of all facets and normals π-v,--normal-valuesβ Check and fix the normal values π―-c,--no-checkβ Don't run any checks on the input file π-b,--write-binary-stl=nameβ Output a binary STL file called name πΎ-a,--write-ascii-stl=nameβ Output an ascii STL file called name π--write-off=nameβ Output a Geomview OFF format file called name π¦--write-dxf=nameβ Output a DXF format file called name π--write-vrml=nameβ Output a VRML format file called name π--helpβ Display this help and exit π--versionβ Output version information and exit π
The functions run in the same order as the options are listed here, so check this list if you want to know what happens when, say, --translate and --merge are used together π The order you type options on the command line doesn't matter β¨
π§ EXAMPLES π§
To do all the checks except nearby, you'd use this:
admesh --exact --remove-unconnected --fill-holes --normal-directions --normal-values sphere.stl
Actually, the exact check is required before remove-unconnected, and remove-unconnected is required before --fill-holes, so you can shorten it to the same result:
admesh --fill-holes --normal-directions --normal-values sphere.stl
You can get the same results with the short options too:
admesh -fudev sphere.stl
or
admesh -fdv sphere.stl
These all do the same thing:
admesh sphere.stl
admesh -fundev sphere.stl
admesh -f -u -n -d -e -v sphere.stl
The -fundev options are already implied by default, so you don't need to type them π To drop one of the checks, just remove its letter from the "word" fundev π«Ά
π SEE ALSO π
For more info about the options and output, read admesh-doc.txt. It's usually in the /usr/share/doc/admesh-x.xx dir π
π₯ COPYRIGHT π₯
Copyright (C) 1995, 1996 Anthony D. Martin <amartin@engr.csulb.edu> π
This program is free software π¦ You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or (at your option) any later version π
This program is distributed in the hope that it'll be useful, but WITHOUT ANY WARRANTY. That means no implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE π Check the GNU General Public License for more details β¨
You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA π«Ά
Bye bestie π This page is from the User Commands set, dated 21/10/2013, and it's ADMESH(1) forever πΈβ¨
π¦ where this page comes from
- debian bookworm: admesh 0.98.4-2 Β· GPL-2.0-or-later
- debian trixie: admesh 0.98.5-1+b2 Β· GPL-2.0-or-later
- fedora 43: admesh 0.98.5-12.fc43 Β· GPL-2.0-or-later
- fedora 44: admesh 0.98.5-14.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: admesh 0.98.4-1 Β· GPL-2.0-or-later
- ubuntu noble: admesh 0.98.5-1build1 Β· GPL-2.0-or-later
- ubuntu resolute: admesh 0.98.5-1build2 Β· GPL-2.0-or-later
- ubuntu stonking: admesh 0.98.5-1build2 Β· GPL-2.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms