mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0025199: Bad tolerance edge generated by blend algorithm
Fixed incorrect surface borders computing. Test cases for issue CR25199
This commit is contained in:
parent
2a78ec6a07
commit
31cf9c5f7d
@ -1558,7 +1558,10 @@ Standard_Boolean DecompositionOfWLine(const Handle(IntPatch_WLine)& theWLine,
|
||||
|
||||
Handle(GeomAdaptor_HSurface) aGASurface = (!surfit) ? theSurface1 : theSurface2;
|
||||
|
||||
aGASurface->ChangeSurface().Surface()->Bounds(umin, umax, vmin, vmax);
|
||||
umin = aGASurface->FirstUParameter();
|
||||
umax = aGASurface->LastUParameter();
|
||||
vmin = aGASurface->FirstVParameter();
|
||||
vmax = aGASurface->LastVParameter();
|
||||
Standard_Real U=0., V=0.;
|
||||
|
||||
if(!surfit) {
|
||||
|
26
tests/bugs/modalg_5/bug25199
Executable file
26
tests/bugs/modalg_5/bug25199
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC25199"
|
||||
puts "============"
|
||||
puts ""
|
||||
###############################################################################################
|
||||
# Bad tolerance edge generated by blend algorithm
|
||||
###############################################################################################
|
||||
|
||||
decho off
|
||||
test bugs modalg_3 bug615
|
||||
decho on
|
||||
|
||||
explode result E
|
||||
|
||||
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result_21] full MaxTol_1
|
||||
|
||||
puts "MaxTolerance = $MaxTol_1"
|
||||
|
||||
set MaxTol 0.001
|
||||
|
||||
if { $MaxTol_1 > $MaxTol } {
|
||||
puts "Faulty OCC25199: Bad tolerance edge generated by blend algorithm"
|
||||
} else {
|
||||
puts "OCC25199 OK: Good tolerance edge generated by blend algorithm"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user