public class Kiosque{ float cote,haut,dcote,trav,dint,diedr; Interpolation[] inter; public Kiosque(float cote,float haut){ this.cote=cote; this.haut=haut; dcote=550; diedr=PI/6f; trav=cote-2.0f*dcote; dint=(cote-dcote)*sqrt(0.5f); inter= new Interpolation[21]; for(int i=0;i<4;i++) { inter[i]=new Traverse(dcote*2,haut/2,PI*i/2,dint); inter[i+4]=new UneTete(dcote*2,haut/2,PI*i/2,dint); inter[i+8]=new Traverse(dcote*2,haut/2,PI*i/2,dint*1.8f); inter[i+12]=new UneTete(dcote*2,haut/2,PI*i/2,dint*1.8f); } } void dessiner(){ float it=min(15,round(tempok/60)); for(int i=0;i<=it;i++){ pushMatrix(); inter[i].actualiser(); popMatrix(); } } }