def add_align(vstruct, vector='a', direction=(1, 0, 0)):
    """align all elements (locally) in a cartesian direction
    vector : ['a','b','c']
    direction : (x,y,z)
    """
    vstruct['transforms'].append({'type': 'local_align', 'cvector': vector,
        'direction': direction})
