Attached Files | vtkQuadraticHexahedron.diff [^] (1,199 bytes) 2007-08-10 10:00 [Show Content] [Hide Content]Index: vtkQuadraticHexahedron.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/vtkQuadraticHexahedron.cxx,v
retrieving revision 1.10
diff -u -r1.10 vtkQuadraticHexahedron.cxx
--- vtkQuadraticHexahedron.cxx 18 May 2007 13:55:22 -0000 1.10
+++ vtkQuadraticHexahedron.cxx 10 Aug 2007 13:56:32 -0000
@@ -24,7 +24,7 @@
#include "vtkQuadraticQuad.h"
#include "vtkPoints.h"
-vtkCxxRevisionMacro(vtkQuadraticHexahedron, "$Revision: 1.10 $");
+vtkCxxRevisionMacro(vtkQuadraticHexahedron, "$Revision: 1.8 $");
vtkStandardNewMacro(vtkQuadraticHexahedron);
//----------------------------------------------------------------------------
@@ -171,7 +171,7 @@
{
this->CellData->CopyData(inCd,cellId,i);
}
-
+
//Interpolate new values
double p[3];
for ( numMidPts=0; numMidPts < 7; numMidPts++ )
@@ -696,6 +696,11 @@
derivs[57] = -0.5*t*rp*sm;
derivs[58] = -0.5*t*rp*sp;
derivs[59] = -0.5*t*rm*sp;
+
+ // we compute derivatives in in [-1; 1] but we need them in [ 0; 1]
+ for(int i = 0; i < 60; i++)
+ derivs[i] *= 2;
+
}
//----------------------------------------------------------------------------
|