Plots the 3d vectorfield on the array of points "triple [] xyz" defined by the vector function "triple f(triple z)" with example "2WireCable3d.asy"
Additionally to facilitate the generation of 3d output files is the subroutine package SetViewport.asy and the bash script Asy.sh which when used together allows one to interactively select a 3d viewport using the mouse and scroll wheel and then save the view as a pdf file by entering "C" and "Q" on the keyboard (the other alternative to do this required Adobe Acrobat which is not free). To try this uncomment "SaveInteractiveCameraView();" in 2WireCable3d.asy and run the program from the command line with -
VectorField.asy is a Asymptote library to allow simple plotting of vector fields on arbitrary point arrays.
void vectorfield2d(pair [] xy,pair f(pair z),real scale=0,pen pen=solid,arrowbar arrow = Arrow)
Plots the 2d vectorfield on the array of points "pair [] xy" defined by the vector function "pair f(pair z)" with example "2WireCable2d.asy"
void vectorfield3d(triple [] xyz,triple f(triple xyz),real scale=0.0,pen pen=solid,arrowbar3 arrow = Arrow3)
Plots the 3d vectorfield on the array of points "triple [] xyz" defined by the vector function "triple f(triple z)" with example "2WireCable3d.asy"
Additionally to facilitate the generation of 3d output files is the subroutine package SetViewport.asy and the bash script Asy.sh which when used together allows one to interactively select a 3d viewport using the mouse and scroll wheel and then save the view as a pdf file by entering "C" and "Q" on the keyboard (the other alternative to do this required Adobe Acrobat which is not free). To try this uncomment "SaveInteractiveCameraView();" in 2WireCable3d.asy and run the program from the command line with -
Asy.sh 2WireCable3d.asy
Let me know if there are any problems.