def getOrientation( geom , camera=True):
    """
    build and return a dictionary storing the orientation for geom

    orientDict <- getOrientation( geom )

    """
    orientMem = {}
    orientMem['rotation'] = geom.rotation[:]
    orientMem['translation'] = geom.translation.copy()
    orientMem['scale'] = geom.scale[:]
    orientMem['pivot'] = geom.pivot[:]
    if camera:
        cam =  geom.viewer.currentCamera
        orientMem['fieldOfView'] = cam.fovy
        orientMem['lookFrom'] = cam.lookFrom.copy()
    
    return orientMem