From 6dbe4605ee53cd4c1dd4c04b5e0c6106ae895193 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 2 Dec 2005 12:40:28 +0000 Subject: [PATCH] Partial fix for Bug GVIEW10709 wrong presentation of quadratic mesh elements (patch for quadratic segement mapping) --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.2