Module gonioanalysis.drosom.export
Export data from MAnalyser objects
Functions
def export_differencemap(analyser1, analyser2, save_fn=None)
-
Exports the comparision between two analysers' vectormaps.
The differences (aka. errors) range between 0 and 1 and are in the points of the analyser1.
def export_vectormap(analyser, save_fn=None)
-
Exports 3D vectors
save_fn : string Path to the new file
def vectors_to_yxz_rotations(points, vectors)
-
Converts 3D vectors to yxz rotations for external applications.
Excexution: Have an arrow 3D model at origo, pointing towards positive X. Then, rotate the arrow along Y axis (the arrow end still remaining at origo). Then, move the arrow to (0,1,0) and while having the center of rotation at origo (0,0,0), rotate first along the X axis and then along the Z axis. After these steps you have reconstructed the vector map.
Arguments
points
:list
- Vector locations from get_3d_vectors
vectors
:list
- Vectors themselves from get_3d_vectors
Returns
yxz_rots
:list
- List of rotations [(yr, xr, zr), …]