mirror of https://github.com/CGAL/cgal
ignore triangles with 2 or 3 identical vertices
This commit is contained in:
parent
441457bc2a
commit
ab3292caa0
|
|
@ -80,7 +80,15 @@ namespace CGAL{
|
||||||
ijk[j] = iti->second;
|
ijk[j] = iti->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
facets.push_back(ijk);
|
if((ijk[0] != ijk[1]) &&
|
||||||
|
(ijk[0] != ijk[2]) &&
|
||||||
|
(ijk[1] != ijk[2])){
|
||||||
|
facets.push_back(ijk);
|
||||||
|
}else{
|
||||||
|
if(verbose){
|
||||||
|
std::cerr << "ignore degenerate face" << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
char c;
|
char c;
|
||||||
input.read(reinterpret_cast<char*>(&c), sizeof(c));
|
input.read(reinterpret_cast<char*>(&c), sizeof(c));
|
||||||
input.read(reinterpret_cast<char*>(&c), sizeof(c));
|
input.read(reinterpret_cast<char*>(&c), sizeof(c));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue