mirror of https://github.com/CGAL/cgal
Don't assert OFF type
This commit is contained in:
parent
548f86b98b
commit
b04369cc6b
|
|
@ -2095,8 +2095,14 @@ private: //------------------------------------------------------- private data
|
||||||
std::string off;
|
std::string off;
|
||||||
is >> sm_skip_comments;
|
is >> sm_skip_comments;
|
||||||
is >> off;
|
is >> off;
|
||||||
CGAL_assertion( (off == "OFF") || (off == "COFF") || (off == "NOFF") || (off == "CNOFF"));
|
if(! (
|
||||||
|
(off == "OFF") || (off == "COFF") || (off == "NOFF") || (off == "CNOFF")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
is.setstate(std::ios::failbit);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
is >> n >> f >> e;
|
is >> n >> f >> e;
|
||||||
if(!is){
|
if(!is){
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue