Handle degenerate edges in face detection

This commit is contained in:
WandererFan
2016-09-08 16:18:52 +02:00
committed by wmayer
parent 3f2264dc4d
commit cebe2faee1
4 changed files with 62 additions and 21 deletions
+7
View File
@@ -118,6 +118,13 @@ bool DrawUtil::isSamePoint(TopoDS_Vertex v1, TopoDS_Vertex v2)
return result;
}
bool DrawUtil::isZeroEdge(TopoDS_Edge& e)
{
TopoDS_Vertex vStart = TopExp::FirstVertex(e);
TopoDS_Vertex vEnd = TopExp::LastVertex(e);
return isSamePoint(vStart,vEnd);
}
//============================
// various debugging routines.
void DrawUtil::dumpVertexes(const char* text, const TopoDS_Shape& s)