.TH mia\-meshfilter 1 "v2.4.7" "USER COMMANDS" .SH NAME mia\-meshfilter \- Run filters on a 3D mesh. .SH SYNOPSIS .B mia\-meshfilter \-i \-o [options] .SH DESCRIPTION .B mia\-meshfilter This program runs a series filters on a given input mesh. The filters are given as extra parameters on the command line and are run in the order in which they are given. To obtain a list of available filters you may run 'mia-plugin-help mesh/filter' from the command line .SH OPTIONS .RS .IP "\-i \-\-in-file=(input, required); io" input mesh to be filtered For supported file types see PLUGINS:mesh/io .IP "\-o \-\-out-file=(output, required); io" output mesh that have been filtered For supported file types see PLUGINS:mesh/io .RE .SS Help & Info .RS .IP "\-V \-\-verbose=warning" verbosity of output, print messages of given level and higher priorities. Supported priorities starting at lowest level are: .RS 10 .I trace \(hy Function call trace .RE .RS 10 .I debug \(hy Debug output .RE .RS 10 .I info \(hy Low level messages .RE .RS 10 .I message \(hy Normal messages .RE .RS 10 .I warning \(hy Warnings .RE .RS 10 .I fail \(hy Report test failures .RE .RS 10 .I error \(hy Report errors .RE .RS 10 .I fatal \(hy Report only fatal errors .RE .IP " \-\-copyright" print copyright information .IP "\-h \-\-help" print this help .IP "\-? \-\-usage" print a short help .IP " \-\-version" print the version number and exit .RE .SS Processing .RS .IP " \-\-threads=\-1" Maxiumum number of threads to use for processing,This number should be lower or equal to the number of logical processor cores in the machine. (\-1: automatic estimation). .RE .SH PLUGINS: mesh/filter .TP 10 .B addscale This filter sorts sets the scale parameter for each vertex from a 3D image. Image and mesh are expected to be in the same physical coordinate space., supported parameters are: .P .RS 14 .I img =(required, string) .RS 2 3DImage that contains the scale values as a volume image.. .RE .RE .TP 10 .B deltribynormal This filter deletes all triangles that have a normal that differs by the given angle from the provided direction., supported parameters are: .P .RS 14 .I angle = 5; float .RS 2 Tolerance angle (in degree) that the normal can diviate from the provided direction.. .RE .RE .RS 14 .I dir =(required, 3dfvector) .RS 2 Direction the triangle normals are expected to point to. The orientation of the vector is taken into account.. .RE .RE .TP 10 .B scale This plug-in provides a filter to scale triangulat meshes by a given strategy, supported parameters are: .P .RS 14 .I anisoscale = [[1,1,1]]; 3dfvector .RS 2 Ansiotropic scaling parameter.. .RE .RE .RS 14 .I box-end = [[256,256,256]]; 3dfvector .RS 2 Box end for fitbox scaling.. .RE .RE .RS 14 .I box-start = [[0,0,0]]; 3dfvector .RS 2 Box start for fitbox scaling.. .RE .RE .RS 14 .I isoscale = 1; float .RS 2 Isotropic scaling parameter.. .RE .RE .RS 14 .I shift = [[0,0,0]]; 3dfvector .RS 2 Shift mesh after scaling.. .RE .RE .RS 14 .I strategy = iso\-linear; dict .RS 2 Isotropic scaling parameter.. Supported values are: .RS 4 .I iso\-linear \(hy Scale and shirt the mesh by scaling it isotropically as given by parameter 'isoscale' and apply a shift as given by parameter 'shift' .RE .RS 4 .I aniso\-linear \(hy Scale and shirt the mesh by scaling it anisotropically as given by parameter 'anisoscale' and apply a shift as given by parameter 'shift' .RE .RS 4 .I iso\-fitbox \(hy Fit the mesh into the given box by shifting it and apply isotropic scaling. The box is given by the parameters 'box-start' for upper, left, frontal corner, and 'box-end' for the lower, right back corner .RE .RS 4 .I aniso\-fitbox \(hy Fit the mesh into the given box by shifting it and apply anisotropic scaling. The box is given by the parameters 'box-start' for upper, left, frontal corner, and 'box-end' for the lower, right back corner .RE .RE .RE .TP 10 .B selectbig This filter selects the component with the highest number of triangles from a mesh that is actually composed of disconnected components. Components are considered to be disconnected if they don't share a common edge (they might share a common vertex though .P .RS 14 (no parameters) .RE .TP 10 .B vtxsort This filter sorts the vertices of a mesh according to the given direction. Specifically, the dot product between the given direction and the vertices will be ordered ascending, supported parameters are: .P .RS 14 .I dir = [[0,0,1]]; 3dfvector .RS 2 Sorting direction,. .RE .RE .SH PLUGINS: mesh/io .TP 10 .B datapool Virtual IO to and from the internal data pool .P .RS 14 Recognized file extensions: .@ .RE .TP 10 .B off plugin to load/store some Geomview OFF files. Supported is only the ASCII format 3D meshes with normales and per-vertex RGB colors. Alpha values and texture coordinates, as well as per face properties are ignored. Polygons are read and triangulated. .P .RS 14 Recognized file extensions: .OFF, .off .RE .TP 10 .B ply Ply triangle mesh input/output support .P .RS 14 Recognized file extensions: .PLY, .ply .RE .TP 10 .B stl STL mesh io plugin .P .RS 14 Recognized file extensions: .STL, .stl .RE .TP 10 .B vista Vista/Simbio triangle mesh input/output support .P .RS 14 Recognized file extensions: .-, .V, .VMESH, .v, .vmesh .RE .TP 10 .B vtk A subset of VTK mesh in-and output: Triangle meshes are written, and triangle meshes and triangle strips are read. Additional per-vertex attributes are supported: 'normals', 'colors' for three component colors, and 'scale' for a scalar value attached to each vertex. The data is written by the vtkPolyDataWriter in binary format. .P .RS 14 Recognized file extensions: .VTK, .VTKMESH, .vtk, .vtkmesh .RE .SH EXAMPLE Run an isotropic scaling on input.vmesh to fit it into the box defined by the corners <0,0,0> \- <128,128,128> and save the result to output.vmesh .HP mia\-meshfilter \-i input.vmesh \-o output.vmesh scale:strategy=iso\-fitbox,box\-start=[<0,0,0>],box\-end=[<128,128,128>] .SH AUTHOR(s) Gert Wollny .SH COPYRIGHT This software is Copyright (c) 1999\(hy2015 Leipzig, Germany and Madrid, Spain. It comes with ABSOLUTELY NO WARRANTY and you may redistribute it under the terms of the GNU GENERAL PUBLIC LICENSE Version 3 (or later). For more information run the program with the option '\-\-copyright'.