Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_2 / bug305
CommitLineData
a87752f3 1puts "TODO OCC12345 ALL: Tcl Exception: result is not a topological shape!!!"
2puts "TODO OCC12345 ALL: TEST INCOMPLETE"
3
4puts "========"
5puts "OCC305"
6puts "========"
7puts ""
8######################################################
9# BRepOffsetAPI_MakeOffset: problem with offsetting a wire
10######################################################
11
12puts ""
13puts "Bug's attributes"
14puts "################"
15puts ""
16puts "Customer : Telco"
17puts "Channel : External"
18puts "Version : 4.0"
19puts "OS : IRIX"
20puts "Urgency : High"
21puts "Type : BUG"
22puts ""
23puts "Summary: BRepOffsetAPI_MakeOffset: problem with offsetting a wire"
24puts ""
25puts "Description:"
26puts "I am attaching the brep file of a curve, obtained from intersection with a"
27puts "plane. Its a planer curve and we want to offset it by the amount which"
28puts "is feasible. after trying with all options we were not able to offset it."
29puts "But the same wire when we read inside EUCLID3 as well as CATIA it does"
30puts "the offset correctly."
31puts ""
32puts ""
33puts "Bug's advancement"
34puts "#################"
35puts ""
36puts "Customer version Development version"
37puts "Status : CLOSED Status : CLOSED"
38puts "Resolution : NOT Resolution : NOT"
39puts "Leave as CLOSED NOT Leave as CLOSED NOT"
40puts ""
41puts ""
42puts "Bug's history"
43puts "#############"
44puts ""
45puts "------- Additional Comments From Igor NAZAROV-BUGMASTER 2002-04-19 16:21 -------"
46puts "Dear Sergey,"
47
48puts "Below you will find conclusion of JGV about thia bug"
49puts "Bugmaster"
50puts " This case can not be done by existing algorithm. It is mathematical"
51puts "limitation: the offset may be performed only from at least C1-continuous"
52puts "curve, but all the 12 edges of initial wire are based on C0-continuous"
53puts "curves."
54puts " I may modify the algorithm so that it splits initial edges into"
55puts "C1-continuous curves, but then resulting wire will consist of too many"
56puts "small edges (in our case the number of edges will increase about 100"
57puts "times)."
58puts " But user may obtain initial wire more smooth: when he intersects"
59puts "something with a plane by command \"section\", he can add the key \"-a\""
60puts "(force approximation)."
61puts ""
62puts ""
63
64catch {pload XDE}
65
66restore [locate_data_file OCC305.brep] a
352ffd73 67checkshape a
a87752f3 68
69if [catch {mkoffset result a 1 0.5 } catch_result] {
70 puts "Faulty OCC305 : function MKOFFSET works wrongly"
71} else {
72 decho off
73 set che [checkshape result]
74 decho on
75 if { [regexp {This shape seems to be valid} $che] == 1} {
76 puts "OCC305 OK"
77 } else {
78 puts "Faulty OCC305"
79 }
80}
81set square 0
82set 2dviewer 0
83