class Blob extends Solid{ float noiseScale; //----------- Blob(){ super(); this.noiseScale = 3; } //----------- void parse(String[] strs, int s){ for( ; s0.4 && val<0.5) break; } return new Vector3D( x, y, z); } //----------- Vector3D getSequentialPosition(){ return getRandomPosition(); } //----------- float voxel(float x, float y, float z){ float d = 1 - sq(mag(x,y,z)); d = ( d<0 ? 0 : d ); return d*noise(4711+noiseScale*x,17+noiseScale*y,noiseScale*z); } }