mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0024886: BRepOffsetAPI_NormalProjection failure
Test case for issue CR24886
This commit is contained in:
parent
1e2fb24474
commit
6e0fd076ae
File diff suppressed because it is too large
Load Diff
@ -107,16 +107,12 @@ void TopOpeBRepDS_EdgeInterferenceTool::Add
|
|||||||
}
|
}
|
||||||
|
|
||||||
// V est un sommet de E ?
|
// V est un sommet de E ?
|
||||||
#ifdef DEB
|
|
||||||
Standard_Boolean VofE = Standard_False;
|
Standard_Boolean VofE = Standard_False;
|
||||||
#endif
|
|
||||||
TopoDS_Iterator it(E,Standard_False);
|
TopoDS_Iterator it(E,Standard_False);
|
||||||
for ( ; it.More(); it.Next() ) {
|
for ( ; it.More(); it.Next() ) {
|
||||||
const TopoDS_Shape& S = it.Value();
|
const TopoDS_Shape& S = it.Value();
|
||||||
if ( S.IsSame(V) ) {
|
if ( S.IsSame(V) ) {
|
||||||
#ifdef DEB
|
|
||||||
VofE = Standard_True;
|
VofE = Standard_True;
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -126,7 +122,10 @@ void TopOpeBRepDS_EdgeInterferenceTool::Add
|
|||||||
cout<<"===================== VofE = False"<<endl;
|
cout<<"===================== VofE = False"<<endl;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if(!VofE)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
// V est un sommet de E
|
// V est un sommet de E
|
||||||
const TopoDS_Vertex& VV = TopoDS::Vertex(V);
|
const TopoDS_Vertex& VV = TopoDS::Vertex(V);
|
||||||
const TopoDS_Edge& EE = TopoDS::Edge(E);
|
const TopoDS_Edge& EE = TopoDS::Edge(E);
|
||||||
|
17
tests/bugs/moddata_3/bug24886
Executable file
17
tests/bugs/moddata_3/bug24886
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "CR24886"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
###################################################################################
|
||||||
|
# BRepOffsetAPI_NormalProjection failure
|
||||||
|
###################################################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug24886_comp.brep] c
|
||||||
|
|
||||||
|
explode c
|
||||||
|
|
||||||
|
if [catch { nproject r c_1 c_2 } ] {
|
||||||
|
puts "Error : BRepOffsetAPI_NormalProjection failure"
|
||||||
|
} else {
|
||||||
|
puts "OK : BRepOffsetAPI_NormalProjection work good"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user