Definition of translation and rotation
The translation and rotation of a graphical object is executed in the coordinate system structure. This consists of the parameters P-SECO-00025 and P-SECO-00026.
gobject[i].cs.position[j] where j =0,1,2
gobject[i].cs.orientation[j][k] where j and k =0,1,2
Example taken from list:
:
gobject[0].name Ausleger_Einfach
gobject[0].filename Ausleger_01
gobject[0].linkpoint A_ACHSE
gobject[0].cs.position[0] 500000
gobject[0].cs.position[1] 0
gobject[0].cs.position[2] 0
gobject[0].cs.orientation[0][0] 1
gobject[0].cs.orientation[0][1] 0
gobject[0].cs.orientation[0][2] 0
gobject[0].cs.orientation[1][0] 0
gobject[0].cs.orientation[1][1] 1
gobject[0].cs.orientation[1][2] 0
gobject[0].cs.orientation[2][0] 0
gobject[0].cs.orientation[2][1] 0
gobject[0].cs.orientation[2][2] 1
gobject[0].key[0] Colour
gobject[0].value[0] red
gobject[0].key[1] Shading
gobject[0].value[1] grey
:
If no rotation is to be executed, specify the unit matrix
(see example below).
Example taken from list for unit matrix:
:
gobject[0].name Ausleger_Einfach
gobject[0].filename Ausleger_01
gobject[0].linkpoint A_ACHSE
gobject[0].cs.position[0] 500000
gobject[0].cs.position[1] 0
gobject[0].cs.position[2] 0
gobject[0].cs.orientation[0][0] 1
gobject[0].cs.orientation[0][1] 0
gobject[0].cs.orientation[0][2] 0
gobject[0].cs.orientation[1][0] 0
gobject[0].cs.orientation[1][1] 1
gobject[0].cs.orientation[1][2] 0
gobject[0].cs.orientation[2][0] 0
gobject[0].cs.orientation[2][1] 0
gobject[0].cs.orientation[2][2] 1
gobject[0].key[0] Colour
gobject[0].value[0] red
gobject[0].key[1] Shading
gobject[0].value[1] grey
: