Changeset db71ab5 in git


Ignore:
Timestamp:
08/03/15 10:09:53 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
fbf7fa0
Parents:
af50685
Message:

src/gfxcore.cc: Remove unnecessary clamping when colouring by date or
error, due to cut-and-pasting code from the colour by depth case.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    raf50685 rdb71ab5  
     1Sun Mar 08 10:09:04 GMT 2015  Olly Betts <olly@survex.com>
     2
     3        * src/gfxcore.cc: Remove unnecessary clamping when colouring by date or
     4          error, due to cut-and-pasting code from the colour by depth case.
     5
    16Sun Mar 08 09:35:59 GMT 2015  Olly Betts <olly@survex.com>
    27
  • src/gfxcore.cc

    raf50685 rdb71ab5  
    26672667        Double into_band = date_offset / interval - band;
    26682668
    2669 //      printf("%g z_offset=%g interval=%g band=%d\n", into_band,
    2670 //             z_offset, interval, band);
    2671         // FIXME: why do we need to clamp here?  Is it because the walls can
    2672         // extend further up/down than the centre-line?
    2673         if (into_band < 0.0) into_band = 0.0;
    2674         if (into_band > 1.0) into_band = 1.0;
    26752669        assert(into_band >= 0.0);
    26762670        assert(into_band <= 1.0);
     
    27492743        Double into_band = E / interval - band;
    27502744
    2751 //      printf("%g z_offset=%g interval=%g band=%d\n", into_band,
    2752 //             z_offset, interval, band);
    2753         // FIXME: why do we need to clamp here?  Is it because the walls can
    2754         // extend further up/down than the centre-line?
    2755         if (into_band < 0.0) into_band = 0.0;
    2756         if (into_band > 1.0) into_band = 1.0;
    27572745        assert(into_band >= 0.0);
    27582746        assert(into_band <= 1.0);
Note: See TracChangeset for help on using the changeset viewer.