import solids; size(7.5cm,0); currentprojection=orthographic(3,1,2); triple vect=(-.5,1.5,.5); transform3 t=shift(vect); triple pA=(1,0,1), pB=(4,0,1), pC=(1,0,4); path3 tri=pA--pB--pC--cycle, trit=t*tri, tritt=t*t*tri; draw(tri,1bp+.5green); draw(trit^^tritt); limits(O,X+Y+Z); xaxis3(Label("$x$",1),Arrow3); yaxis3(Label("$y$",1),Arrow3); zaxis3(Label("$z$",1),Arrow3); pen p1=.8bp+blue+dotted; draw(pA--pA+vect,p1,Arrow3); draw(pB--pB+vect,p1,Arrow3); draw(pC+vect--pC+2*vect,p1,Arrow3); shipout(format="pdf", bbox(3mm,white));