+ public void marchingCubes() {
+ Mesh mesh = new Mesh(false);
+ mesh.coalesce = true;
+ MarchingCubes.march(new SampledField() {
+ public float getSample(Point p) {
+ double x = p.x;
+ double y = p.y;
+ double z = p.z;
+ x-=0.7;
+ y-=0.7;
+ z-=0.7;
+ return (float)Math.sqrt(x*x+y*y+z*z);
+ }
+ },
+ 0.8, 20, 0.1, mesh);
+ setTile(mesh);
+ //fixupTile();
+ }
+