diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-09-28 23:52:58 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-09-28 23:52:58 +0000 |
commit | 555bc4f60c845bf47aee94e4b7963382838c9f57 (patch) | |
tree | aa012672259995addc1d01420aee2df608bd83d8 /src/reflections.c | |
parent | 12271165c0948536f9b34603432ade4953c97b4e (diff) |
Move basis stuff to separate file
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@136 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/reflections.c b/src/reflections.c index a1f6a2c..3fa1b6d 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -254,7 +254,7 @@ Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x, reflection = reflectionctx->reflections; while ( reflection ) { - if ( (reflection->type == REFLECTION_NORMAL) && (!reflection->found) ) { + if ( reflection->type == REFLECTION_NORMAL ) { double mod; mod = modulus(x - reflection->x, y - reflection->y, z - reflection->z); if ( mod < max ) { @@ -265,10 +265,8 @@ Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x, reflection = reflection->next; }; - if ( best ) best->found = 1; return best; - } Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, double x, double y, double z, double min_distance) { @@ -290,7 +288,6 @@ Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, dou reflection = reflection->next; }; - if ( best ) best->found = 1; return best; } |