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