mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0027481: [Regression to OCCT 6.6.0] Modeling Algorithms - incorrect CUT on two solids
* Test case has been added * Adjust mesh characteristics in test cases according to changes in issue #27537
This commit is contained in:
parent
b819ae67ce
commit
4b445d1848
@ -13,7 +13,7 @@ restore [locate_data_file OCC396_f2903.brep] result
|
||||
incmesh result 0.01
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 38 -nod 40
|
||||
checktrinfo result -tri 39 -nod 41
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
|
@ -15,6 +15,6 @@ vclear
|
||||
isos result 0
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 6 -nod 8
|
||||
checktrinfo result -tri 8 -nod 10
|
||||
checkprops result -s 1.3135
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -12,7 +12,7 @@ incmesh result 0.01
|
||||
#View the result of mesh
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 3657 -nod 1908
|
||||
checktrinfo result -tri 3758 -nod 1959
|
||||
checkprops result -s 32.9479
|
||||
checkshape result
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@ -12,7 +12,7 @@ incmesh result 0.01
|
||||
#View the result of mesh
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 3737 -nod 1952
|
||||
checktrinfo result -tri 3972 -nod 2070
|
||||
checkprops result -s 36.4284
|
||||
checkshape result
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,6 +1,6 @@
|
||||
puts "TODO OCC12345 ALL: Error : The area of result shape is"
|
||||
puts "TODO OCC12345 ALL: Error: Number of triangles"
|
||||
puts "TODO OCC12345 ALL: Error: Number of nodes"
|
||||
#puts "TODO OCC12345 ALL: Error: Number of triangles"
|
||||
#puts "TODO OCC12345 ALL: Error: Number of nodes"
|
||||
|
||||
puts "========================"
|
||||
puts " OCC287 "
|
||||
|
@ -17,6 +17,6 @@ vfit
|
||||
isos result 0
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 1135 -nod 823
|
||||
checktrinfo result -tri 1145 -nod 831
|
||||
checkprops result -s 376.873
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -19,6 +19,6 @@ vsetdispmode result 1
|
||||
isos result 0
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 6 -nod 8
|
||||
checktrinfo result -tri 8 -nod 10
|
||||
checkprops result -s 1.3135
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -14,6 +14,6 @@ vdisplay result
|
||||
vfit
|
||||
vsetdispmode result 1
|
||||
|
||||
checktrinfo result -tri 72 -nod 74
|
||||
checktrinfo result -tri 74 -nod 76
|
||||
checkprops result -s 314.159
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@ -14,7 +14,7 @@ vdisplay result
|
||||
vfit
|
||||
vsetdispmode result 1
|
||||
|
||||
checktrinfo result -tri 71 -nod 73
|
||||
checktrinfo result -tri 74 -nod 76
|
||||
checkprops result -s 100.531
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -16,6 +16,6 @@ vdisplay result
|
||||
vfit
|
||||
vsetdispmode result 1
|
||||
|
||||
checktrinfo result -tri 72 -nod 74
|
||||
checktrinfo result -tri 74 -nod 76
|
||||
checkprops result -s 314.159
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
21
tests/bugs/modalg_6/bug27481
Normal file
21
tests/bugs/modalg_6/bug27481
Normal file
@ -0,0 +1,21 @@
|
||||
puts "============"
|
||||
puts "OCC27481"
|
||||
puts "============"
|
||||
puts ""
|
||||
######################################################
|
||||
# Boolean CUT produces wrong result
|
||||
######################################################
|
||||
|
||||
restore [locate_data_file bug27481_object.brep] obj
|
||||
restore [locate_data_file bug27481_tool.brep] tool
|
||||
|
||||
bcut result obj tool
|
||||
|
||||
checknbshapes result -solid 1
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -v 197909
|
||||
|
||||
smallview; fit
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
@ -1,6 +1,3 @@
|
||||
puts "TODO OCC12345 ALL: Error: Number of triangles"
|
||||
puts "TODO OCC12345 ALL: Error: Number of nodes"
|
||||
|
||||
puts "================"
|
||||
puts "OCC17"
|
||||
puts "================"
|
||||
@ -22,5 +19,5 @@ vdisplay result
|
||||
vsetdispmode result 1
|
||||
vfit
|
||||
|
||||
checktrinfo result -tri 100 -nod 94
|
||||
checktrinfo result -tri 96 -nod 94
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,4 +1,5 @@
|
||||
puts "TODO OCC12345 ALL: Error: Number of triangles"
|
||||
puts "TODO OCC12345 ALL: Error: Number of nodes"
|
||||
|
||||
puts "================"
|
||||
puts "OCC20"
|
||||
|
@ -12,5 +12,5 @@ vdisplay result
|
||||
vsetdispmode result 1
|
||||
vfit
|
||||
|
||||
checktrinfo result -tri 66 -nod 66
|
||||
checktrinfo result -tri 72 -nod 72
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -15,5 +15,5 @@ vsetdispmode result 1
|
||||
vfit
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 100 -nod 102
|
||||
checktrinfo result -tri 78 -nod 80
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -15,5 +15,5 @@ vsetdispmode result 1
|
||||
vfit
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 70 -nod 72
|
||||
checktrinfo result -tri 78 -nod 80
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -24,7 +24,7 @@ if {$report != ""} {
|
||||
|
||||
# Checking triangulation area (triarea command)...
|
||||
set max_rel_tol_diff 1
|
||||
set rel_tol 0.29
|
||||
set rel_tol 0.4
|
||||
set area_eps 0
|
||||
|
||||
smallview
|
||||
|
@ -32,7 +32,7 @@ set fd0 [ open ${aFile} r ]
|
||||
set filecontent [ read ${fd0} ]
|
||||
close $fd0
|
||||
|
||||
if { ![regexp {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,\n\s+16,17,18,19,20,21,22,23,24,25,26,27,28, -1} ${filecontent} full] } {
|
||||
if { ![regexp {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, -1} ${filecontent} full] } {
|
||||
set status 0
|
||||
}
|
||||
|
||||
|
@ -10,5 +10,5 @@ tclean result
|
||||
incmesh result .9
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 88 -nod 90
|
||||
checktrinfo result -tri 91 -nod 93
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -13,5 +13,5 @@ vsetdispmode result 1
|
||||
isos result 0
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 129 -nod 131
|
||||
checktrinfo result -tri 50 -nod 52
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -18,7 +18,7 @@ vsetdispmode result 1
|
||||
vfit
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 92 -nod 92
|
||||
checktrinfo result -tri 96 -nod 96
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
set TheFileName shading_102.brep
|
||||
if { [string compare $command "shading"] == 0 } {
|
||||
set bug_area "OCC22687"
|
||||
set rel_tol 1.692
|
||||
set rel_tol 1.52
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
set TheFileName shading_149.brep
|
||||
if { [string compare $command "shading"] != 0 } {
|
||||
set bug_area "OCC22687"
|
||||
set rel_tol 1.2
|
||||
set rel_tol 1.05
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
set TheFileName shading_wrongshape_021.brep
|
||||
if { [string compare $command "shading"] != 0 } {
|
||||
set bug_area "OCC22687"
|
||||
set rel_tol 1.2
|
||||
set rel_tol 1.04
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ if { [string compare $bug_freelinks ""] != 0 } {
|
||||
# It may be different for different OS
|
||||
foreach os_freelinks [array names nbfree] {
|
||||
if { $nbfree($os_freelinks) != 0 } {
|
||||
puts "TODO $bug_freelinks $os_freelinks:^\\s*Error: Free links: $nbfree($os_freelinks)\\b\\s*"
|
||||
puts "TODO $bug_freelinks $os_freelinks:^\\s*Error: Free links"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user