Skip to content

Commit

Permalink
[FIO] explicitly ignore polylines/surfaces without name
Browse files Browse the repository at this point in the history
  • Loading branch information
chleh committed Feb 9, 2016
1 parent 096e6e5 commit 0a5287d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions FileIO/XmlIO/Boost/BoostXmlGmlInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ void BoostXmlGmlInterface::readPolylines(
polylines.back()->addPoint(pnt_id_map[_idx_map[pt]]);
}
}
else
{
// polyline has no name, ignore it.
pl.ignoreConfParamAll("pnt");
}
}
}

Expand Down Expand Up @@ -226,6 +231,11 @@ void BoostXmlGmlInterface::readSurfaces(
surfaces.back()->addTriangle(p1,p2,p3);
}
}
else
{
// surface has no name, ignore it.
sfc.ignoreConfParamAll("element");
}
}
}

Expand Down

0 comments on commit 0a5287d

Please sign in to comment.