0025124: [Feature request] Removal of continuity checks for offset geometries
[occt.git] / tests / bugs / modalg_5 / bug25124_5
CommitLineData
3d58dc49 1puts "========"
2puts "OCC25124"
3puts "========"
4puts ""
5######################################################
6# Removal of continuity checks for offset geometries
7######################################################
8
9smallview
10
11point pp 0 0 1
12circle cc 20 40 30 20
13convert bc cc
14trim bc bc 1 6
15offsetcurve oc bc 10 pp
16trim bc oc 2 5
17revsurf se bc 0 0 0 0 1 0
18offset os se 15
19
20set bug_info [getsurfcontinuity se]
21getsurfcontinuity os
22
23if {[string compare $bug_info "se has G1 continuity.\n"] != 0} {
24 puts "ERROR: OCC25124 is reproduced (se does not have G1 continuity)."
25}
26
27set bug_info_1 [dump se]
28set bug_info_1 [string range $bug_info_1 39 [expr {[string length $bug_info_1] -1}]]
29set bug_info_2 [dump os]
30set bug_info_2 [string range $bug_info_2 39 [expr {[string length $bug_info_2] -1}]]
31if {[string compare $bug_info_1 $bug_info_2] == 0} {
32 puts "ERROR: OCC25124 is reproduced (se = os)."
33}
34
35donly os se
36fit
37
38set only_screen_axo 1