}
v3_zero(&r);
- v3_add(&r,&r,&o);
count=0;
/* fill up the room */
+ r.x=o.x;
while(r.x<x) {
- r.y=.0;
+ r.y=o.y;
while(r.y<y) {
- r.z=.0;
+ r.z=o.z;
while(r.z<z) {
v3_copy(&(atom[count].r),&r);
+ atom[count].element=1;
count+=1;
for(i=0;i<3;i++) {
v3_add(&n,&r,&basis[i]);