mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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:
@@ -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
|
||||
|
||||
|
||||
|
21
tests/bugs/modalg_7/bug30590_1
Normal file
21
tests/bugs/modalg_7/bug30590_1
Normal 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
|
21
tests/bugs/modalg_7/bug30590_2
Normal file
21
tests/bugs/modalg_7/bug30590_2
Normal 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
|
21
tests/bugs/modalg_7/bug30590_3
Normal file
21
tests/bugs/modalg_7/bug30590_3
Normal 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
|
Reference in New Issue
Block a user