From ac9295f8f9ec5efa475fa8f2a56b3d975d6acc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Thu, 14 Jan 2010 23:04:03 +0100 Subject: =?UTF-8?q?Kleine=20=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Temparray.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Temparray.cpp') diff --git a/Temparray.cpp b/Temparray.cpp index af46f8d..a2303ab 100644 --- a/Temparray.cpp +++ b/Temparray.cpp @@ -1,7 +1,8 @@ #include "Temparray.h" Temparray::Temparray(float initialtemp, int x0, int y0, int z0){ - temparray = new float[x0*y0*z0*6*4]; + temparraynew = new float[x0*y0*z0*6*4]; + temparrayold = new float[x0*y0*z0*6*4]; cubearray = new Cubehole[x0*y0*z0*6]; sx = x0; @@ -10,12 +11,12 @@ Temparray::Temparray(float initialtemp, int x0, int y0, int z0){ tempInit(initialtemp, x0, y0, z0); -// static const float pos[5] = {-2.0, -1.0, 0.0, 1.0, 2.0}; + // static const float pos[5] = {-2.0, -1.0, 0.0, 1.0, 2.0}; for(int i = 0; i < x0; ++i) { for(int j = 0; j < y0; ++j) { for(int k = 0; k < z0; ++k) { for(int l = 0; l < 6; ++l) { - cubehole(i, j, k, l).setSize((6-l)/6*0.9, 3, (6-l)/6*0.9, (5-l)/6*0.9, (5-l)/6*0.9); + cubehole(i, j, k, l).setSize((6-l)/6*0.9, 0.9, (6-l)/6*0.9, (5-l)/6*0.9, (5-l)/6*0.9); float x, y, z; if(x0 % 2 == 0) x = -(x0/2)+i+0.5; @@ -36,6 +37,10 @@ Temparray::Temparray(float initialtemp, int x0, int y0, int z0){ } } +void Temparray::calcTemp(int x, int y, int z, int line, int pos){ + +} + std::list Temparray::getTriangles(){ std::list triangles; -- cgit v1.2.3