0030346: Modeling Algorithms - BRepPrimAPI_MakeRevol throws "BRepSweep_Translation...
[occt.git] / tests / bugs / modalg_7 / bug27711_2
CommitLineData
1d54b807 1puts "TODO OCC27711 ALL: ERROR: OCC27711 is reproduced. Result of blend operation is WRONG."
5d010b1d 2puts "TODO OCC27711 ALL: Error: tolerance"
1d54b807 3puts "TODO OCC27711 ALL: Faulty shapes in variables faulty_1 to faulty_"
340054e1 4puts "========"
5puts "OCC27711"
6puts "========"
7puts ""
8#####################################
9# Blend-on-blend corrupts the shape
10#####################################
11
12smallview
13
81a55a69 14restore [locate_data_file bug27711.brep] s
15
340054e1 16clear
81a55a69 17display s
340054e1 18fit
19xwd $imagedir/${casename}_step_0.png
20
81a55a69 21explode s e
1d54b807 22blend r1 s 0.5 s_7 0.5 s_12
23set bug_info [string trim [checkshape r1]]
340054e1 24if {$bug_info != "This shape seems to be valid"} {
25 puts "ERROR: Problem of test case functionality. Should be additionally investigated."
26}
27clear
1d54b807 28display r1
340054e1 29xwd $imagedir/${casename}_step_1.png
30
1d54b807 31explode r1 e
32blend r1 r1 0.5 r1_1 0.5 r1_8
33set bug_info [string trim [checkshape r1]]
340054e1 34if {$bug_info != "This shape seems to be valid"} {
35 puts "ERROR: Problem of test case functionality. Should be additionally investigated."
36}
37clear
1d54b807 38display r1
340054e1 39xwd $imagedir/${casename}_step_2.png
40
1d54b807 41explode r1 e
42blend result r1 0.35 r1_4 0.25 r1_15 0.2 r1_27
340054e1 43set bug_info [string trim [checkshape result]]
44if {$bug_info != "This shape seems to be valid"} {
45 puts "ERROR: OCC27711 is reproduced. Result of blend operation is WRONG."
46}
5d010b1d 47checkmaxtol result -min_tol 1.e-3
340054e1 48clear
49display result
50xwd $imagedir/${casename}_step_3.png