mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0023944: Typo in ShapeCustom_RestrictionParameters leading to wrong approximation results
Add test case for this fix
This commit is contained in:
parent
20b1ae2c3c
commit
416d012709
@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
ShapeCustom_RestrictionParameters::ShapeCustom_RestrictionParameters()
|
ShapeCustom_RestrictionParameters::ShapeCustom_RestrictionParameters()
|
||||||
{
|
{
|
||||||
myGMaxSeg = 15;
|
myGMaxSeg = 10000;
|
||||||
myGMaxDegree = 10000;
|
myGMaxDegree = 15;
|
||||||
|
|
||||||
myConvPlane = Standard_False;
|
myConvPlane = Standard_False;
|
||||||
//myConvElementarySurf = Standard_False;
|
//myConvElementarySurf = Standard_False;
|
||||||
|
27
tests/bugs/heal/bug23944
Executable file
27
tests/bugs/heal/bug23944
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC23944"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
###################################################
|
||||||
|
## Typo in ShapeCustom_RestrictionParameters leading to wrong approximation results
|
||||||
|
###################################################
|
||||||
|
|
||||||
|
set BugNumber OCC23944
|
||||||
|
|
||||||
|
restore [locate_data_file bug23944_s.brep] s
|
||||||
|
|
||||||
|
mkface f s
|
||||||
|
|
||||||
|
set info [bsplres result f 1e-4 1e-9 15 100 C1 C2 0 1]
|
||||||
|
|
||||||
|
# Resume
|
||||||
|
puts ""
|
||||||
|
if { [regexp {Debug mode} [dversion]] } {
|
||||||
|
if { [regexp {Surface is aproximated with continuity 0} $info] } {
|
||||||
|
puts "OK ${BugNumber}"
|
||||||
|
} else {
|
||||||
|
puts "Faulty ${BugNumber}"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
puts "Test for debug mode only"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user