Контрольная работа: Сглаженная поверхность для границы трех атомов в пространстве
{
setcolor(0);setfillstyle(0,0);
pieslice(x[i]+40,800-y[i],0,360,r[i]);
setcolor(svet);setlinestyle(0,0,1);
}
setcolor(svet);
setcolor(10);
char er[15];
sprintf(er,"ñôåðà ¹%d",i);
circle(x[i]+40,800-y[i],r[i]);outtextxy(x[i]+40,800-y[i],er);
ellipse(x[i]+40,800-y[i],180,360,r[i],r[i]/2);
ellipse(x[i]+40,800-y[i]-r[i]/2,180,360,r[i]-(x[i]+r[i]-(sqrt(r[i]*r[i]-(r[i]/2)*(r[i]/2))+x[i]))-2,r[i]/4);
ellipse(x[i]+40,800-y[i]+r[i]/2,180,360,r[i]-(x[i]+r[i]-(sqrt(r[i]*r[i]-(r[i]/2)*(r[i]/2))+x[i]))-2,r[i]/4);
setlinestyle(3,0,1);
ellipse(x[i]+40,800-y[i],0,180,r[i],r[i]/2);
ellipse(x[i]+40,800-y[i]-r[i]/2,0,180,r[i]-(x[i]+r[i]-(sqrt(r[i]*r[i]-(r[i]/2)*(r[i]/2))+x[i]))-2,r[i]/4);
ellipse(x[i]+40,800-y[i]+r[i]/2,0,180,r[i]-(x[i]+r[i]-(sqrt(r[i]*r[i]-(r[i]/2)*(r[i]/2))+x[i]))-2,r[i]/4);
if (raz==0) setlinestyle(0,0,1);
if (svet==2) svet=14;
else svet=svet-2;
}
}
raz=raz+1;
for(i=1;i<=3;i++)
{p[i]=z[i];}
p[4]=Zc;
if (raz==1) risuem();
}
void sechen(void)