]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Partial fix for Bug GVIEW10709
authorapo <apo@opencascade.com>
Fri, 2 Dec 2005 12:40:28 +0000 (12:40 +0000)
committerapo <apo@opencascade.com>
Fri, 2 Dec 2005 12:40:28 +0000 (12:40 +0000)
   wrong presentation of quadratic mesh elements
(patch for quadratic segement mapping)

src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 10dec386c4228c636cdbca7446a41d14b3356cc2..7a26cbdc79738b2aeb250aec1a952b82aa151130 100755 (executable)
@@ -493,7 +493,14 @@ void VTKViewer_GeometryFilter::UnstructuredGridExecute()
        }
         //Quadratic cells
         case VTK_QUADRATIC_EDGE: {
-         newCellId = output->InsertNextCell(VTK_POLY_LINE,npts,pts);
+         numFacePts = 3;
+         aCellType = VTK_POLY_LINE;
+
+         aNewPts[0] = pts[0];
+         aNewPts[2] = pts[1];
+         aNewPts[1] = pts[2];
+
+         newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts);
          if(myStoreMapping)
            myVTK2ObjIds.push_back(cellId);