import bsp; size(7.5cm,0); settings.tex="pdflatex"; currentprojection=orthographic(10,2,5); real alpha = 45; triple pA=(1,0,0), pB=(4,0,3), pC=(3,0,0); transform3 r=rotate(alpha,pB-pA); pen dotteddash=linetype("0 4 4 4"); path3 tri=pA--pB--pC--cycle; for (int i=0; i<360/alpha; ++i) { draw(surface(tri),yellow,blue); tri=r*tri; } triple centrecercleA=(pA+rotate(180,pB-pA)*pA)/2, centrecercleB=(pB+rotate(180,pB-pA)*pB)/2; draw(surface(circle(centrecercleA,abs(pA-centrecercleA),pB-pA)), lightblue+opacity(.3),blue); draw((0,0,0)--centrecercleB,dotteddash+blue); draw(surface(circle(centrecercleB,abs(pB-centrecercleB),pB-pA)), lightblue+opacity(.3),blue);