Define modifications to be done on a basic shape. More...
#include <mbs_saver_struct.h>
Public Attributes | |
| int | on_base |
More... | |
| char * | body_name |
More... | |
| char * | shape_name |
More... | |
| ShapeIds | shape_nature |
More... | |
| double * | size |
More... | |
| double * | radius |
More... | |
| double * | height |
More... | |
| double * | position |
| double * | scale |
More... | |
| double * | rotation |
More... | |
| double | transparency |
More... | |
| int | visible |
More... | |
| struct UpdateShape * | next |
More... | |
Define modifications to be done on a basic shape.
| char* body_name |
Name of the body with the shape, disregarded if
on_baseis true.
| double* height |
DEPRECATED for Json formatted project.
For XML projects it is the height of the shapes, except for SHAPE_BOX and SHAPE_SPHERE.
Set to NULL to not update it.
Position (x, y, z) of the shape, Set to NULL to not update it.
| struct UpdateShape* next |
Pointer to next shape to be updated.
| int on_base |
True (1) if the shape is on the basebody.
| double* position |
| double* radius |
DEPRECATED for Json formatted project.
For XML projects it is the radius of the shapes, except for SHAPE_BOX.
Set to NULL to not update it.
| double* rotation |
Rotation (around x, y, z) of the inline, Set to NULL to not update it.
| double* scale |
DEPRECATED for Json formatted project.
For XML projects it is the scale applied on the shape dimensions along each axis (x, y, z).
Set to NULL to not update it.
| char* shape_name |
Name of the shape in the shape list.
In case of multiple occurrence, the first is considered.
| ShapeIds shape_nature |
Indicate if the shape is a box, cylinder, cone or sphere:
For inline shape (SHAPE_INLINE), use the structure UpdateShape.
| double* size |
The behavior of this field depend of the loaded project format.
For JSON formatted projects, size defines the shape size along each axis. For cone and cylinder, the height is located in the index 1.
For XML formatted projects, size defines the shape size of boxes. The boxes have the shape_nature at SHAPE_BOX.
Set to NULL to not update it.
| double transparency |
Transparency (1 is invisible, 0 is fully visible) of the inline, Set to negative value to not update it.
| int visible |
Flag to show the shape (1) or hide it (0). Set to -1 to not update it.
1.8.17