DGtalTools  0.9.4
meshViewer

Displays OFF mesh file by using QGLviewer.

Usage: meshViewer [input]

Allowed options are :

-h [ --help ] display this message
-i [ --input ] arg off files (.off), or OFS file (.ofs)
-x [ --scaleX ] arg (=1) set the scale value in the X direction
(default 1.0)
-y [ --scaleY ] arg (=1) set the scale value in the Y direction
(default 1.0)
-z [ --scaleZ ] arg (=1) set the scale value in the Z direction
(default 1.0)
-w [ --minLineWidth ] arg (=1.5) set the min line width of the mesh faces
(default 1.5)
--customColorMesh arg set the R, G, B, A components of the colors
of the mesh faces and eventually the color
R, G, B, A of the mesh edge lines (set by
default to black).
--customColorSDP arg set the R, G, B, A components of the colors
of the sdp view
-f [ --displayVectorField ] arg display a vector field from a simple sdp
file (two points per line)
--vectorFieldIndex arg specify special indices for the two point
coordinates (instead usinf the default
indices: 0 1, 2, 3, 4, 5)
--customLineColor arg set the R, G, B components of the colors of
the lines displayed from the
--displayVectorField option (red by
default).
-s [ --displaySDP ] arg Add the display of a set of discrete points
as ball of radius 0.5.
--SDPradius arg (=0.5) change the ball radius to display a set of
discrete points (used with displaySDP
option)
-n [ --invertNormal ] threshold min to define binary shape
-A [ --addAmbientLight ] arg(=0) add an ambient light for better display
(between 0 and 1).
-v [ --drawVertex ] draw the vertex of the mesh
-d [ --doSnapShotAndExit] arg, save display snapshot into file. Notes that the camera setting is set by default according the last saved configuration (use SHIFT+Key_M to save current camera setting in the Viewer3D). If the camera setting was not saved it will use the default camera setting.

Example:

$ meshViewer -i bunny.off

You should obtain such a result:

resMeshViewer.png
Resulting visualization.
See also
meshViewer.cpp