1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030590: Wrong result of Boolean Cut algorithm

Modification in static method BoundedArc of IntStart_SearchOnBoundaries:
    add exact intersection of canonical curve-surface (when Func is IntPatch_ArcFunction).
This commit is contained in:
jgv
2019-04-25 19:46:14 +03:00
committed by bugmaster
parent 7783ba1120
commit 9369e98a62
13 changed files with 418 additions and 106 deletions

View File

@@ -19,18 +19,24 @@ checkprops result -s 45.9872
set nbshapes_expected "
Number of shapes in result
VERTEX : 6
EDGE : 7
VERTEX : 7
EDGE : 8
WIRE : 2
FACE : 2
SHELL : 1
SOLID : 0
COMPSOLID : 0
COMPOUND : 0
SHAPE : 18
SHAPE : 20
"
checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation"
set tolres [checkmaxtol result]
if { ${tolres} > 5.e-7} {
puts "Error: bad tolerance of result"
}
checkview -display result -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,21 @@
puts "==============================================="
puts "OCC30590: Wrong result of Boolean Cut algorithm"
puts "==============================================="
puts ""
binrestore [locate_data_file bug30590_cut_argument1.bin] a
binrestore [locate_data_file bug30590_cut_tool1.bin] b
bcut result a b
checkshape result
checknbshapes result -solid 1 -shell 1 -face 15 -wire 15 -edge 39 -vertex 26
set tolres [checkmaxtol result]
if { ${tolres} > 0.005} {
puts "Error: bad tolerance of result"
}
checkprops result -v 5639.93 -deps 1.e-7

View File

@@ -0,0 +1,21 @@
puts "==============================================="
puts "OCC30590: Wrong result of Boolean Cut algorithm"
puts "==============================================="
puts ""
binrestore [locate_data_file bug30590_cut_argument1.bin] a
binrestore [locate_data_file bug30590_cut_tool2.bin] b
bcut result a b
checkshape result
checknbshapes result -solid 1 -shell 1 -face 15 -wire 15 -edge 39 -vertex 26
set tolres [checkmaxtol result]
if { ${tolres} > 0.005} {
puts "Error: bad tolerance of result"
}
checkprops result -v 5639.78 -deps 1.e-7

View File

@@ -0,0 +1,21 @@
puts "==============================================="
puts "OCC30590: Wrong result of Boolean Cut algorithm"
puts "==============================================="
puts ""
binrestore [locate_data_file bug30590_cut_argument1.bin] a
binrestore [locate_data_file bug30590_cut_tool3.bin] b
bcut result a b
checkshape result
checknbshapes result -solid 1 -shell 1 -face 15 -wire 15 -edge 39 -vertex 26
set tolres [checkmaxtol result]
if { ${tolres} > 0.005} {
puts "Error: bad tolerance of result"
}
checkprops result -v 5638.15 -deps 1.e-7

View File

@@ -16,7 +16,11 @@ if {[regexp "Faulties" [bopargcheck result]]} {
puts "Error: bopargcheck has found some faulties in res2"
}
checkmaxtol result -ref 0.00010921129251073595
set tolres [checkmaxtol result]
if { ${tolres} > 5.e-6} {
puts "Error: bad tolerance of result"
}
smallview
don result sw tw

View File

@@ -3,10 +3,6 @@ puts "0029807: Impossible to cut cone from prism"
puts "========"
puts ""
puts "TODO OCC29883 ALL: Error in res_2: T=0"
puts "TODO OCC29883 ALL: Error: 0 vertices are expected but 2 are found"
puts "TODO OCC29883 ALL: Error : is WRONG because number of VERTEX entities in shape \"result\" is 3"
foreach a [directory res*] {unset $a}
binrestore [locate_data_file bug29807_f1.bin] f1

View File

@@ -3,9 +3,7 @@ puts "OCC29972: Intersection curve has a weird gap in the middle of it"
puts "========"
puts ""
puts "TODO OCC27243 ALL: Error: The curve res_1 possibly has a bend"
set GoodNbCurves 2
set GoodNbCurves 1
foreach a [directory res*] {unset $a}

View File

@@ -3,9 +3,7 @@ puts "OCC29972: Intersection curve has a weird gap in the middle of it"
puts "========"
puts ""
puts "TODO OCC27243 ALL: Error: The curve res_1 possibly has a bend"
set GoodNbCurves 2
set GoodNbCurves 1
foreach a [directory res*] {unset $a}