From: geay Date: Fri, 28 Mar 2014 08:37:43 +0000 (+0100) Subject: Debug in MEDCouplingUMesh::writeVTK for polylines X-Git-Tag: V7_4_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9312632370006b8b2abfdd4ac57b5b2fc3adb4c;p=tools%2Fmedcoupling.git Debug in MEDCouplingUMesh::writeVTK for polylines --- 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)