1 %I think
this is the most up-to-date script to generate the initial ball points.
2 %generate points along two circumferences at 0.9 and 1.1 the radius of the actual ball.
4 R=198/(2*pi) %ball radius.
5 R1=(1-0.20)*R; %ray
for placing the
internal points [mm]
6 R2=(1+0.20)*R; %ray
for placing the external points [mm]
9 t=0:(2*pi/nPoints):2*pi;
12 p1=R1*[zeros(1,nPoints);y;z];
13 p2=R2*[zeros(1,nPoints);y;z];
16 ID=fopen(
'initial_ball_points_smiley_31mm_20percent.csv',
'w');
19 fprintf(ID,
'%f\n',points(a,b));