mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0024612: Wrong pcurve of the section curve
Main changes are in "IntWalk_IWalking::TestDeflection(...)" function (IntWalk_IWalking_5.gxx). Some test cases were corrected according to their new behavior.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
puts "TODO #22911 ALL: Error : The area of the resulting shape is"
|
||||
|
||||
restore [locate_data_file CTO908_topo104-o1.brep] wheel
|
||||
restore [locate_data_file CTO908_topo104-o2.brep] jante
|
||||
|
||||
bfuse result wheel jante
|
||||
|
||||
set square 0
|
||||
set square 40059.9
|
||||
|
@@ -1,8 +1,6 @@
|
||||
puts "TODO #22911 ALL: Error : The area of the resulting shape is"
|
||||
|
||||
restore [locate_data_file CTO908_topo106-p.brep] poche
|
||||
restore [locate_data_file CTO908_topo106-n.brep] nervure
|
||||
|
||||
bfuse result poche nervure
|
||||
|
||||
set square 0
|
||||
set square 108943
|
||||
|
@@ -1,6 +1,4 @@
|
||||
# cts17861
|
||||
#puts "TODO #22911 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO #22911 ALL: Error : The area of the resulting shape is"
|
||||
|
||||
restore [locate_data_file CTO900_cts17861a.rle] a
|
||||
restore [locate_data_file cts17861b.rle] b
|
||||
@@ -10,4 +8,4 @@ fsameparameter b
|
||||
|
||||
bfuse result a b
|
||||
|
||||
set square 0
|
||||
set square 406803
|
||||
|
@@ -1,9 +1,7 @@
|
||||
puts "TODO #22911 ALL: Error : The area of the resulting shape is"
|
||||
|
||||
restore [locate_data_file a102] a
|
||||
restore [locate_data_file b136] b
|
||||
|
||||
bop a b
|
||||
boptuc result
|
||||
|
||||
set square 0
|
||||
set square 9741.13
|
||||
|
@@ -16,5 +16,5 @@ repeat 100 {
|
||||
compound s_$i result result
|
||||
incr i
|
||||
}
|
||||
set length 3961.04
|
||||
set length 3854.34
|
||||
set 2dviewer 0
|
||||
|
@@ -10,7 +10,7 @@ pload QAcommands
|
||||
restore [locate_data_file bug23952_s1.draw] a
|
||||
restore [locate_data_file bug23952_s2.draw] b
|
||||
|
||||
set NbLines 5
|
||||
set NbLines 6
|
||||
set info [OCC23952intersect $NbLines a b]
|
||||
|
||||
if { [regexp "theNbSol: OK" $info] != 1 } {
|
||||
|
82
tests/bugs/modalg_5/bug24612
Normal file
82
tests/bugs/modalg_5/bug24612
Normal file
@@ -0,0 +1,82 @@
|
||||
puts "========="
|
||||
puts "OCC24612"
|
||||
puts "========="
|
||||
puts ""
|
||||
###########################################################
|
||||
# Wrong pcurve of the section curve
|
||||
###########################################################
|
||||
|
||||
set MaxTol 5.0e-7
|
||||
set NbCurv_OK 1
|
||||
restore [locate_data_file bug24612_b1.brep] b1
|
||||
restore [locate_data_file bug24612_b2.brep] b2
|
||||
|
||||
mksurface s1 b1
|
||||
bounds s1 U1f_exp U1l_exp V1f_exp V1l_exp
|
||||
|
||||
dval U1f_exp
|
||||
dval U1l_exp
|
||||
dval V1f_exp
|
||||
dval V1l_exp
|
||||
|
||||
set log [bopcurves b1 b2 -2d]
|
||||
|
||||
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
|
||||
|
||||
if {${NbCurv} != ${NbCurv_OK}} {
|
||||
puts "Error: ${NbCurv_OK} curve(s) expected, but ${NbCurv} found."
|
||||
}
|
||||
|
||||
if {${Toler} > ${MaxTol}} {
|
||||
puts "Error: Tolerance is too big!"
|
||||
}
|
||||
|
||||
#Theoretically, c2d1_1 must cover V-diapason of surface s1 fully.
|
||||
|
||||
set log [dump c2d1_1]
|
||||
|
||||
regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles
|
||||
puts "Degree=${Degree}"
|
||||
puts "Poles=${Poles}"
|
||||
puts "KnotsPoles=${KnotsPoles}"
|
||||
puts ""
|
||||
|
||||
set Pole 1
|
||||
set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
|
||||
regexp ${exp_string} ${log} full U_begin V_begin
|
||||
|
||||
puts "Pole=${Pole}"
|
||||
puts "U_begin=${U_begin}"
|
||||
puts "V_begin=${V_begin}"
|
||||
dset V_begin ${V_begin}
|
||||
puts ""
|
||||
|
||||
set Pole ${Poles}
|
||||
set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
|
||||
regexp ${exp_string} ${log} full U_end V_end
|
||||
|
||||
puts "Pole=${Pole}"
|
||||
puts "U_end=${U_end}"
|
||||
puts "V_end=${V_end}"
|
||||
dset V_end ${V_end}
|
||||
puts ""
|
||||
|
||||
set delta_f [dval V1l_exp-V_begin]
|
||||
|
||||
#ATTENTION!!! V_begin must be strictly equal V1l_exp (without any tolerance)
|
||||
if {${delta_f} != 0} {
|
||||
puts "Error: Bad value. V_begin = [dval V_begin], Vlast = [dval V1l_exp]."
|
||||
} else {
|
||||
puts "OK: Good value. V_begin matches with Vlast of surface."
|
||||
}
|
||||
|
||||
puts ""
|
||||
|
||||
set delta_l [dval V1f_exp-V_end]
|
||||
|
||||
#ATTENTION!!! V_end must be strictly equal V1f_exp (without any tolerance)
|
||||
if {${delta_l} != 0} {
|
||||
puts "Error: Bad value. V_end = [dval V_end], Vfirst = [dval V1f_exp]."
|
||||
} else {
|
||||
puts "OK: Good value. V_end matches with Vfirst of surface."
|
||||
}
|
@@ -7,8 +7,6 @@ puts ""
|
||||
## It is impossible to intersect two surfaces
|
||||
##################################################
|
||||
|
||||
puts "TODO OCC24472 ALL: Error : Intersection was made WRONGLY"
|
||||
|
||||
restore [locate_data_file OCC13-1.draw] su1
|
||||
############### checkshape su1 # is not a topological shape
|
||||
restore [locate_data_file OCC13-2.draw] su2
|
||||
@@ -27,9 +25,9 @@ set nom 0
|
||||
set err1 [lindex $che1 [expr [llength $che1] - 2]]
|
||||
|
||||
if { $err != "curve" && $err1 != "3d"} {
|
||||
break
|
||||
break
|
||||
} else {
|
||||
set nom [expr $nom + 1]
|
||||
set nom [expr $nom + 1]
|
||||
}
|
||||
incr j}
|
||||
if { $nom == 0} {
|
||||
|
@@ -2,10 +2,6 @@ restore [locate_data_file cylindre.rle] cyl
|
||||
restore [locate_data_file contour.rle] cont
|
||||
mkplane cont cont
|
||||
nexplode cyl F
|
||||
|
||||
puts "*"
|
||||
#puts "TODO OCC22810 All:Faulty .*"
|
||||
puts "TODO OCC22810 ALL:Error : The area of the resulting shape is"
|
||||
ttranslate cont 0 0 -100
|
||||
|
||||
#
|
||||
@@ -18,4 +14,4 @@ if { [catch { featperform prism result face face } ] != 0 } {
|
||||
puts "Error in featperform"
|
||||
}
|
||||
|
||||
set square 0
|
||||
set square 82351.1
|
||||
|
Reference in New Issue
Block a user