Vision and Mobile Robotics Laboratory | Software
|
|
Home | Members | Projects | Publications | Software | Videos | Internal |
TransformMesh is a program that reads in a mesh and a transformation and outputs a new mesh which is a transformed version of the input mesh.
TransformMesh.c contains function that applies transformation to 3-D vertices of mesh.
By typing TransformMesh - the following options (format description default) are printed:
Usage: TransformMesh (see TransformMesh.html For complete usage)
%S set input faceset filename [required]
%S set output faceset filename [required]
-translate %F %F %F set x,y,z translation [0 0 0]
-rotate %F %F %F set rotation about x,y,z axes [0 0 0]
-scale %F set scale of object [1]
-inv invert transformation [off]
-readTrans %S transform mapping 2 to 1 [optional]
%S set input faceset filename [required]
Filename of mesh to be transformed.
%S set output faceset filename [required]
Filename for writing transformed mesh.
-translate %F %F %F set x,y,z translation [0 0 0]
Translation (tx,ty,tz) to be applied to mesh.
-rotate %F %F %F set rotation about x,y,z axes [0 0 0]
Rotation (rx,ry,rz) about world axes to be applied to mesh in terms of fixed rotation angles in degrees. Rotations are applied before translations.
-scale %F set scale of object [1]
Scale applied to mesh.
-inv invert transformation [off]
Indicates that the inverse of the given transformation should be applied to the mesh.
-readTrans %S transform mapping 2 to 1 [optional]
Read the transform from a file (in the standard transform file format). This overrides settings in the -translate and -rotate parameters.
To translate a mesh by [2,3,4] and rotate it by [30,-40,100] degrees and then scale it by 2.
TransformMesh model.wrl movedModel.wrl -translate 2 3 4 -rotate 30 -40 100 -scale 2