In the article, an approach to creation of corpuscular-optical devices for transportation and transformation of charged particle beams has been elucidated. These devices are able to optimize and create the most convenient configuration of ionic or electron path. The approach relies upon the inverse dynamics problem formulated on a basis of the Hamilton-Jacobi equation. The motion in the symmetry plane of a threedimensional (3D) field was considered. The problem was solved by analytical methods. An algorithm for construction electric fields providing the particle motion on the desired trajectories was described. А key to this algorithm lies with a concept of conformal transformation from complex variable theory. This procedure was illustrated by examples. Quadratic potential was chosen as a basis. Three functions of conformal transformation were considered, they providing the rotation of the focused charged particle beam at fixed angle, the transformation of divergent flow to parallel one. The calculated two-dimensional potentials were extended into 3D-space by power series expansion on transverse coordinate. Device embodiments were suggested on a basis of the calculated field structures.