public CP_Na_Cl(float scale,int mProgram) { // TODO Auto-generated constructor stub drawBallColorBig=new DrawBallColor(bigR*scale, mProgram); drawBallColorSmall=new DrawBallColor(smallR*scale, mProgram); drawCylinderSideColor=new DrawCylinderSideColor(cylinderR*scale, cylinderH*scale*2, mProgram); offset=cylinderH*scale/2; }
大球与小球的半径:
private float bigR=0.3f;
private float smallR=0.2f;