A function to compute the facets for drawing a complex function on a square or a disk with branch(es) cut(s) on Ox or Oy.

Download this demo on ATOMS.