diff options
author | joye <joye> | 2014-03-10 20:29:57 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-10 20:29:57 (GMT) |
commit | b4eafc000bac06ca2eace24a35f4ab4a72a5c194 (patch) | |
tree | 8125a0989a57e8280227e10201ccd6a8500859ac /src/bltGrElemLine.C | |
parent | 8e4920de5c68bb7414022f636c2d34540bea151e (diff) | |
download | blt-b4eafc000bac06ca2eace24a35f4ab4a72a5c194.zip blt-b4eafc000bac06ca2eace24a35f4ab4a72a5c194.tar.gz blt-b4eafc000bac06ca2eace24a35f4ab4a72a5c194.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrElemLine.C')
-rw-r--r-- | src/bltGrElemLine.C | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C index 78101e0..523b8d8 100644 --- a/src/bltGrElemLine.C +++ b/src/bltGrElemLine.C @@ -2192,8 +2192,10 @@ static double DistanceToYProc(int x, int y, Point2d *p, Point2d *q, Point2d *t) } static int ClosestTrace(Graph* graphPtr, LineElement* elemPtr, - ClosestSearch *searchPtr, DistanceProc *distProc) + DistanceProc *distProc) { + ClosestSearch* searchPtr = &graphPtr->search; + Blt_ChainLink link; Point2d closest; double dMin; @@ -2394,9 +2396,9 @@ static void GetLineExtentsProc(Element *basePtr, Region2d *extsPtr) } } -static void ClosestLineProc(Graph* graphPtr, Element *basePtr, - ClosestSearch *searchPtr) +static void ClosestLineProc(Graph* graphPtr, Element *basePtr) { + ClosestSearch* searchPtr = &graphPtr->search; LineElement* elemPtr = (LineElement *)basePtr; int mode; @@ -2423,7 +2425,7 @@ static void ClosestLineProc(Graph* graphPtr, Element *basePtr, } else { distProc = DistanceToLineProc; } - found = ClosestTrace(graphPtr, elemPtr, searchPtr, distProc); + found = ClosestTrace(graphPtr, elemPtr, distProc); if ((!found) && (searchPtr->along != SEARCH_BOTH)) { ClosestPoint(elemPtr, searchPtr); } |