From: apo Date: Fri, 2 Dec 2005 13:17:07 +0000 (+0000) Subject: Partial fix for Bug GVIEW10709 X-Git-Tag: TG-D5-38-2003_D2005-29-12~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36b37c56c3c59db8367e2ca4a5e70a8cab132cac;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);