mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-20 12:45:50 +03:00
0028012: Exception while intersecting two surfaces
Test case for issue CR28012
This commit is contained in:
parent
ff1541f179
commit
bc9a61ec69
@ -1894,7 +1894,7 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)& S
|
||||
|
||||
PW.Perform(StartParams);
|
||||
if(PW.IsDone()) {
|
||||
|
||||
if(PW.NbPoints()>2) {
|
||||
Point3dDebut = PW.Value(1).Value();
|
||||
Point3dFin = PW.Value(PW.NbPoints()).Value();
|
||||
|
||||
@ -1919,8 +1919,6 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)& S
|
||||
trans2 = IntSurf_Out;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Standard_Real TolTang = TolTangency;
|
||||
Handle(IntPatch_WLine) wline = new IntPatch_WLine(PW.Line(),Standard_False,trans1,trans2);
|
||||
IntPatch_RstInt::PutVertexOnLine(wline,Surf1,D1,Surf2,Standard_True,TolTang);
|
||||
@ -1947,7 +1945,7 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)& S
|
||||
//---------------
|
||||
SLin.Append(wline);
|
||||
empt = Standard_False;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
17
tests/bugs/modalg_6/bug28012
Normal file
17
tests/bugs/modalg_6/bug28012
Normal file
@ -0,0 +1,17 @@
|
||||
puts "========"
|
||||
puts "OCC28012"
|
||||
puts "========"
|
||||
puts ""
|
||||
#################################################
|
||||
# Exception while intersecting two surfaces
|
||||
#################################################
|
||||
|
||||
restore [locate_data_file bug28012_s1.draw] s1
|
||||
restore [locate_data_file bug28012_s2.draw] s2
|
||||
|
||||
intersect result s1 s2 0.00012162815337817315 0.0010404164685680738 0.99999999999999989 0.22068942273845651
|
||||
|
||||
smallview
|
||||
fit
|
||||
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user