# - projectAllDirs (pyTree) - import Geom.PyTree as D import Converter.PyTree as C import Generator.PyTree as G import Transform.PyTree as T a = D.sphere((0,0,0), 1., 20) b = G.cart((1.1,-0.1,-0.1),(0.1,0.1,0.1), (1,5,5)) b = G.getNormalMap(b) b = C.center2Node(b,['centers:sx','centers:sy','centers:sz']) c = T.projectAllDirs(b, a,['sx','sy','sz']); c[0] = 'projection' C.convertPyTree2File([a,b,c], 'out.cgns')