0028499: Checkshape incorrectly reports BRepCheck_NotClosed when gap is covered by...
[occt.git] / tests / bugs / modalg_7 / bug27711
CommitLineData
5d010b1d 1puts "TODO OCC27711 ALL: Error: tolerance"
340054e1 2puts "========"
3puts "OCC27711"
4puts "========"
5puts ""
6#####################################
7# Blend-on-blend corrupts the shape
8#####################################
9
10smallview
11
81a55a69 12restore [locate_data_file bug27711.brep] s
13
340054e1 14clear
81a55a69 15display s
340054e1 16fit
17xwd $imagedir/${casename}_step_0.png
18
81a55a69 19explode s e
20blend result s 0.5 s_12 0.5 s_11
340054e1 21set bug_info [string trim [checkshape result]]
22if {$bug_info != "This shape seems to be valid"} {
23 puts "ERROR: Problem of test case functionality. Should be additionally investigated."
24}
25clear
26display result
27xwd $imagedir/${casename}_step_1.png
28
29explode result e
30# The correct command format should be following:
31# blend res res 0.5 res_7 0.5 res_11
32# but it does not work properly on win64 vc 10
33# so for automated test case following command format was used:
34blend result result 0.5 result_11
35set bug_info [string trim [checkshape result]]
36if {$bug_info != "This shape seems to be valid"} {
37 puts "ERROR: Problem of test case functionality. Should be additionally investigated."
38}
39clear
40display result
41xwd $imagedir/${casename}_step_2.png
42
43explode result e
44blend result result 0.35 result_4 0.25 ressult_15 0.2 result_27
45set bug_info [string trim [checkshape result]]
46if {$bug_info != "This shape seems to be valid"} {
47 puts "ERROR: OCC27711 is reproduced. Result of blend operation is WRONG."
48}
5d010b1d 49checkmaxtol result -min_tol 1.e-3
340054e1 50clear
51display result
52xwd $imagedir/${casename}_step_3.png