7
I want to use asymptote to illustrate Stokes theorem as in the following figure.
Here is what I've done so far.
import three;
size(6cm,0);
path path2D = (1, 0) .. (2, 1) .. (0, 2) .. (-2.25, 1) .. (-1.5, 0) .. (-1, -1) .. (0, -1.75) .. (1, -2) .. cycle;
path3 path3D = path3(path2D, XYplane)...