From: apo Date: Fri, 2 Dec 2005 12:40:28 +0000 (+0000) Subject: Partial fix for Bug GVIEW10709 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6dbe4605ee53cd4c1dd4c04b5e0c6106ae895193;p=modules%2Fgui.git Partial fix for Bug GVIEW10709 wrong presentation of quadratic mesh elements (patch for quadratic segement mapping) --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 10dec386c..7a26cbdc7 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -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);