[cig-commits] commit: Found a bug in gLucifer that was causing cross sectoins

Mercurial hg at geodynamics.org
Mon Nov 24 11:29:02 PST 2008


changeset:   32:2a6bc877485b
user:        LukeHodkinson
date:        Fri Oct 26 00:50:14 2007 +0000
files:       DrawingObjects/src/ScalarFieldCrossSection.c
description:
Found a bug in gLucifer that was causing cross sectoins
to be drawn without blending colours across quads.
This accounts for all the blocky pictures we've been
getting, pretty much since the inception of gLucifer.


diff -r f82ce051800e -r 2a6bc877485b DrawingObjects/src/ScalarFieldCrossSection.c
--- a/DrawingObjects/src/ScalarFieldCrossSection.c	Tue Oct 23 05:30:32 2007 +0000
+++ b/DrawingObjects/src/ScalarFieldCrossSection.c	Fri Oct 26 00:50:14 2007 +0000
@@ -39,7 +39,7 @@
 *+		Patrick Sunter
 *+		Greg Watson
 *+
-** $Id: ScalarFieldCrossSection.c 740 2007-10-11 08:05:31Z SteveQuenette $
+** $Id: ScalarFieldCrossSection.c 743 2007-10-26 00:50:14Z LukeHodkinson $
 ** 
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
@@ -356,6 +356,8 @@ void lucScalarFieldCrossSection_DrawCros
 				pos[ aAxis ] = max[ aAxis ];
 				interpolationCoord[ aAxis ] = max[ aAxis ] - FUDGE_FACTOR/aLength;
 			}
+			else
+				interpolationCoord[ aAxis ] = pos[ aAxis ];
 			
 			lucScalarFieldCrossSection_PlotColouredVertex( self, interpolationCoord, pos );
 		}



More information about the CIG-COMMITS mailing list