This section contains a list of public PyPO
methods which are used for rotating and translating reflectors, groups and frame objects.
More...
Functions | |
PyPO.System.System.rotateGrids (self, name, rotation, obj="element", mode="relative", pivot=None, keep_pol=False) | |
Rotate reflector grids. | |
PyPO.System.System.translateGrids (self, name, translation, obj="element", mode="relative") | |
Translate reflector grids. | |
This section contains a list of public PyPO
methods which are used for rotating and translating reflectors, groups and frame objects.
PyPO.System.System.rotateGrids | ( | self, | |
name, | |||
rotation, | |||
obj = "element", | |||
mode = "relative", | |||
pivot = None, | |||
keep_pol = False ) |
Rotate reflector grids.
Apply a rotation, around a center of rotation, to a reflector, group or frame. Note that an absolute orientation rotates the orientation such that it is oriented w.r.t. the z-axis. In this case, the pivot defaults to the origin and not to the specified pivot. In the case that a PO field and/or a PO current is associated with the reflector, the polarisation of the field and/or current is rotated along as well. This can be disabled by setting the "keep_pol" parameter to "True".
name | Reflector name or list of reflector names. |
rotation | Numpy ndarray of length 3, containing rotation angles around x, y and z axes, in degrees. |
obj | Whether the name corresponds to a single element or group. |
mode | Apply rotation relative ('relative') to current orientation, or rotate to specified orientation ('absolute'). |
pivot | Numpy ndarray of length 3, containing pivot x, y and z co-ordinates, in mm. Defaults to pos. |
keep_pol | Keep polarisation of a field/current defined on the surface, if present. |
PyPO.System.System.translateGrids | ( | self, | |
name, | |||
translation, | |||
obj = "element", | |||
mode = "relative" ) |
Translate reflector grids.
Apply a translation to a reflector, group or frame. If the translation is absolute, the object will be translated such that its internal position parameter coincides with the specified translation.
name | Reflector name or list of reflector names. |
translation | Numpy ndarray of length 3, containing translation x, y and z co-ordinates, in mm. |
obj | Whether the name corresponds to a single element or group. |
mode | Apply translation relative ('relative') to current position, or move to specified position ('absolute'). |