This is my code so far:
import three;
import math;
texpreamble("\usepackage{bm}");
texpreamble("\newcommand{\ex}{\bm{e}_x}");
texpreamble("\newcommand{\ey}{\bm{e}_y}");
texpreamble("\newcommand{\ez}{\bm{e}_z}");
texpreamble("\newcommand{\av}{\bm{a}}");
texpreamble("\newcommand{\Ri}[1]{\bm{\vec{R}_{#1}}}");
size(300,0);
pen thickp=linewidth(2mm);
real rho=1, phi=60, z=0.8;
currentprojection=perspective((4,1,2));
real r=1.1;
pen p=black;
draw(Label("$\ex$",1.1),O--r*X,p,Arrow3); // x unit vector
draw(Label("$\ey$",1.1),O--r*Y,p,Arrow3); // y unit vector
draw(Label("$\ez$",1.1),O--r*Z,p,Arrow3); // z unit vector
triple R0=(-1,-3,-4); // vector R0 to cable
triple a=(0,1,0); // direction
draw(Label("$\av$",0.65),(R0-a/2)--(R0+a/2),red,Arrow3);
draw("$\Ri{0}$",R0--O,align=2*dir(90,phi),Arrow3,DotMargin3);
I want to achieve something similar to the red arrow on the blue surface: . The surface should be in the plane created by $a$ and $\vec{R_0}$. The new arrow should start in the origin of the coordinate axis, and the vector components of that arrow should be projected on $e_x, e_y$ and $e_z$.
I can not find an example for that, and I am an asymptote newbie.
plane
, not surface.