The velocity field is represented as external velocity plus influence from object that considered as electric field in some electrostatic task. potential flow means Laplace operator of potential is 0 that is electrostatic task. The electrostatic task is solved as set of point charge that charges need to find from condition for velocity to be tangent on object surface. All charges is on object surface or inside.
It is possible to draw object. Spline interpolation used.