From 0668e9831ebd68a638452af4c8f46671a71916db Mon Sep 17 00:00:00 2001 From: Akash Anand <akasha@iitk.ac.in> Date: Tue, 14 Aug 2007 18:11:19 +0000 Subject: [PATCH] add hoc fix for some vrml files --- Geo/GModelIO_Mesh.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp index e7434dea58..9ab00dd65f 100644 --- a/Geo/GModelIO_Mesh.cpp +++ b/Geo/GModelIO_Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: GModelIO_Mesh.cpp,v 1.21 2007-07-22 15:48:07 geuzaine Exp $ +// $Id: GModelIO_Mesh.cpp,v 1.22 2007-08-14 18:11:19 anand Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -1075,6 +1075,13 @@ int GModel::readVRML(const std::string &name) if(!skipUntil(fp, "point")) break; if(!readVerticesVRML(fp, vertexVector, allVertexVector)) break; } + else if(!strcmp(str, "coord")){ + vertexVector.clear(); + if(!skipUntil(fp, "point")) break; + if(!readVerticesVRML(fp, vertexVector, allVertexVector)) break; + if(!skipUntil(fp, "coordIndex")) break; + if(!readElementsVRML(fp, vertexVector, region, elements, true)) break; + } else if(!strcmp(str, "IndexedTriangleStripSet")){ region++; vertexVector.clear(); -- GitLab