]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
VTK writing of curve linear mesh
authorageay <ageay>
Fri, 8 Feb 2013 12:42:44 +0000 (12:42 +0000)
committerageay <ageay>
Fri, 8 Feb 2013 12:42:44 +0000 (12:42 +0000)
src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx

index 2794f4025c320512d1bd91a5606a347e137c145d..99af63bc2c862b40ba84148406f8c501890d4deb 100644 (file)
@@ -525,7 +525,7 @@ void MEDCouplingCurveLinearMesh::writeVTKLL(std::ostream& ofs, const std::string
   if(meshDim<=0 || meshDim>3)
     throw INTERP_KERNEL::Exception("MEDCouplingCurveLinearMesh::writeVTKLL : meshDim invalid ! must be in [1,2,3] !");
   for(int i=0;i<3;i++)
-    { int val=i<meshDim?_structure[i]-1:1; extent << "0 " <<  val << " "; }
+    { int val=i<meshDim?_structure[i]-1:0; extent << "0 " <<  val << " "; }
   ofs << "  <" << getVTKDataSetType() << " WholeExtent=\"" << extent.str() << "\">\n";
   ofs << "    <Piece Extent=\"" << extent.str() << "\">\n";
   ofs << "      <PointData>\n" << pointData << std::endl;