0023752: Integration of test grid "vpr" into the new testing system
[occt.git] / tests / bugs / modalg_1 / bug165_6
CommitLineData
61c421bf 1puts "TODO ?OCC11111 ALL: An exception was caught"
2puts "TODO ?OCC11111 ALL: Exception"
3puts "TODO ?OCC11111 ALL: Faulty OCC165"
4puts "TODO ?OCC11111 ALL: Error : The length of result shape is"
5
6cpulimit 600
7
8puts "========"
9puts "OCC165"
10puts "========"
11puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY direction)"
12
13
14dchrono h reset
15dchrono h start
16
17restore [locate_data_file offset_wire_019.brep] a
18checkshape a
19
20mkplane f a
21checkshape f
22
23set start_stepoffset 0.2
24set incr_stepoffset 0.1
25set finish_stepoffset 4.9
26
27set interval_numb [expr int ( ($finish_stepoffset - $start_stepoffset) / $incr_stepoffset ) + 1]
28
29set IsMade 0
30set IsBeginMade 0
31set IsGood 1
32set i 0
33set resume_string ""
34for {set stepoffset $start_stepoffset} {$stepoffset <= $finish_stepoffset} {set stepoffset [expr $stepoffset + $incr_stepoffset]} {
35 incr i
36 puts "i = $i"
37 if { [catch {mkoffset result f 1 $stepoffset } catch_result] } {
38 puts "Faulty OCC165 (stepoffset = $stepoffset) : function MKOFFSET works wrongly"
39 set IsGood 0
40 set IsMade 0
41 } else {
42 puts "OK OCC165 (stepoffset = $stepoffset)"
43 set IsMade 1
44 }
45 if {$IsBeginMade == 0 && $IsMade == 1} {
46 set IsBeginMade 1
47 set BeginStepOffset $stepoffset
48 }
49 if {$IsMade == 1} {
50 set FinishStepOffset $stepoffset
51 }
52
53 dchrono h show
54
55 if {$IsBeginMade == 1 && ($IsMade == 0 || $i == $interval_numb) } {
56 set IsBeginMade 0
57 set resume_tmp "from [format "%0.2f" $BeginStepOffset] till [format "%0.2f" $FinishStepOffset]\n"
58 set resume_string "${resume_string}${resume_tmp}"
59 }
60}
61
62puts ""
63if {[string length $resume_string] == 0} {
64 puts "Offset is created wrongly on initial shape in following borders"
65 puts "from [format "%0.2f" $start_stepoffset] till [format "%0.2f" $finish_stepoffset]"
66} else {
67 puts "Offset is created correctly on initial shape in following borders"
68 puts "$resume_string"
69}
70
71if {$IsGood == 1} {
72 puts "OCC165 OK"
73} else {
74 puts "Faulty OCC165"
75}
76
77renamevar result_1 result
78
79set length 1112.83
80set 2dviewer 0
81
82dchrono h stop
83dchrono h show