All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mianalysis.mia.process.voxel.SphereSolid Maven / Gradle / Ivy

package io.github.mianalysis.mia.process.voxel;

public class SphereSolid extends AbstractSphere {
    public SphereSolid(int r) {
        for (int xx = -r; xx < r; xx++) {
            for (int yy = -r; yy < r; yy++) {
                for (int zz= -r; zz < r; zz++) {    
                    if (inSphere(xx,yy,zz,r)) {
                        x.add(xx);
                        y.add(yy);
                        z.add(zz);
                    }
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy