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