From 207e22f1db2f92eb302bac936f895b69b1a0c122 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 26 Mar 2010 19:33:44 +0100 Subject: [PATCH] fix in operator curve handling --- FDTD/operator.cpp | 56 +++++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/FDTD/operator.cpp b/FDTD/operator.cpp index 71d0ea0..08906d9 100644 --- a/FDTD/operator.cpp +++ b/FDTD/operator.cpp @@ -139,19 +139,17 @@ struct Operator::Grid_Path Operator::FindPath(double start[], double stop[]) double meshStart[] = {discLines[0][uiStart[0]], discLines[1][uiStart[1]], discLines[2][uiStart[2]]}; double meshStop[] = {discLines[0][uiStop[0]], discLines[1][uiStop[1]], discLines[2][uiStop[2]]}; - double foot,dist,minFoot,minDist,minDir; + double foot,dist,minFoot,minDist; + int minDir; + bool UpDir; unsigned int minPos[3]; double startFoot,stopFoot,currFoot; Point_Line_Distance(meshStart,start,stop,startFoot,dist); Point_Line_Distance(meshStop,start,stop,stopFoot,dist); currFoot=startFoot; - + minFoot=startFoot; double P[3]; -// cerr << "start pos " << discLines[0][currPos[0]] << " " << discLines[1][currPos[1]] << " " << discLines[2][currPos[2]] << endl; -// -// FDTD_FLOAT**** array = Create_N_3DArray(numLines); - while (minFootGetPoint(i-1,p1); curv->GetPoint(i,p2); path = FindPath(p1,p2); -// cerr << p1[0] << " " << p1[1] << " " << p1[2] << endl; -// cerr << p2[0] << " " << p2[1] << " " << p2[2] << endl; for (size_t t=0;t