From b9312632370006b8b2abfdd4ac57b5b2fc3adb4c Mon Sep 17 00:00:00 2001 From: geay Date: Fri, 28 Mar 2014 09:37:43 +0100 Subject: [PATCH] Debug in MEDCouplingUMesh::writeVTK for polylines --- src/MEDCoupling/MEDCouplingUMesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 32e812a47..0f1dee158 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -8554,7 +8554,7 @@ void MEDCouplingUMesh::writeVTKLL(std::ostream& ofs, const std::string& cellData w4=std::copy(c.begin(),c.end(),w4); } } - types->transformWithIndArr(PARAMEDMEM2VTKTYPETRADUCER,PARAMEDMEM2VTKTYPETRADUCER+INTERP_KERNEL::NORM_MAXTYPE); + types->transformWithIndArr(PARAMEDMEM2VTKTYPETRADUCER,PARAMEDMEM2VTKTYPETRADUCER+INTERP_KERNEL::NORM_MAXTYPE+1); types->writeVTK(ofs,8,"UInt8","types",byteData); offsets->writeVTK(ofs,8,"Int32","offsets",byteData); if(szFaceOffsets!=0) -- 2.39.2