1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025020: checkoverlapedges doesn't have the check for degenerated edges

the check for degenerated edges added
Test case for issue CR25020
This commit is contained in:
ibs
2014-06-19 13:29:13 +04:00
committed by apn
parent e01907f12a
commit 7d0496dd6d
2 changed files with 35 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include <Draw.hxx>
#include <DBRep.hxx>
#include <BRep_Tool.hxx>
#include <SWDRAW.hxx>
#include <gp_XYZ.hxx>
#include <gp_Pnt2d.hxx>
@@ -635,6 +636,19 @@ static Standard_Integer checkoverlapedges(Draw_Interpretor& di, Standard_Integer
di<<"Invalid type of arguments"<<"\n";
return 1;
}
if (BRep_Tool::Degenerated(e1))
{
di << a[1] << " is degenerated\n";
return 1;
}
if (BRep_Tool::Degenerated(e2))
{
di << a[2] << " is degenerated\n";
return 1;
}
Standard_Real aTol = Precision::Confusion();
Standard_Real aDistDomain = 0.0;
Standard_Integer k = 3;