cuiktransform.c File Reference

Detailed Description

dot_inline_dotgraph_6.png

Applies a rigid transform to a convex body.

This is useful to rotate/translate bodies to be latter used to define mechanisms or obstacles.

Todo:
Integrate the CuikSuite with a proper 3D modeler such as blender.

Definition in file cuiktransform.c.

Functions

int main (int argc, char **arg)
 Main body of the cuiktransform application. More...
 

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuiktransform application.

Use:

  • cuiktransform body_in transfrom value body_in body_out

Where:

  • body_in: Body to transform.
  • transform: One of the following strings Tx, Ty, Tz, Rx, Ry, Rz, Sc.
  • value: Value for the transform (angles in degrees!!).
  • body_out: File where to store the transformed body (can be the same as the input).
Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuiktransform command itself and its arguments).
argStrings with the arguments.
Returns
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 58 of file cuiktransform.c.

References CreateFileName(), DEG2RAD, DeleteColor(), DeleteFileName(), DeletePolyhedron(), Error(), FALSE, GetFileFullName(), HTransformDelete(), HTransformRx(), HTransformRy(), HTransformRz(), HTransformScale(), HTransformScaleX(), HTransformScaleY(), HTransformScaleZ(), HTransformTx(), HTransformTy(), HTransformTz(), InitPolyhedronFromFile(), NewColor(), NORMAL_SHAPE, SavePolyhedron(), and TransformPolyhedron().