3.1.2.19. opengate.helpers_transform¶
3.1.2.19.1. Module Contents¶
3.1.2.19.1.1. Functions¶
https://stackoverflow.com/questions/53808503/how-to-test-if-a-matrix-is-a-rotation-matrix |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Build a repeater for the given volume name, according to a ring rotation. |
|
|
|
|
|
|
|
- opengate.helpers_transform.is_rotation_matrix(R)[source]¶
https://stackoverflow.com/questions/53808503/how-to-test-if-a-matrix-is-a-rotation-matrix
- opengate.helpers_transform.repeat_ring(name, start_deg, nb, translation, axis=[0, 0, 1])[source]¶
- Build a repeater for the given volume name, according to a ring rotation.
start_deg must be in degrees nb is the number of repeated positions translation is the initial translation of the volume according to the center axis is the rotation axis
The output is a dict (Box) of all positions (name + translation + rotation) than can be set to the ‘repeat’ member of a volume.