Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

cuiktransform.c File Reference

Main body of the cuiktransform application. More...

#include "world.h"
#include "error.h"
#include "defines.h"
#include <string.h>

Go to the source code of this file.

Functions

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

Detailed Description

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.


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.
  • 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:
argc Number of elements in the command line that starts the application (i.e., the cuiktransform command itself and its arguments).
arg Strings with the arguments.
Returns:
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 41 of file cuiktransform.c.

References CreateFileName(), DEG2RAD, DeleteColor(), DeleteCPolyhedron(), DeleteFileName(), Error(), FALSE, GetFileFullName(), HTransformDelete(), HTransformRx(), HTransformRy(), HTransformRz(), HTransformTx(), HTransformTy(), HTransformTz(), InitCPolyhedronFromFile(), NewColor(), SaveCPolyhedron(), and TransformCPolyhedron().

Here is the call graph for this function: