0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_5 / bug24472
CommitLineData
00302ba4 1puts "========="
2puts "CR24472"
3puts "========="
4puts ""
5###############################
6## Wrong section curves
7###############################
8
00302ba4 9restore [locate_data_file bug24472_Pipe_1.brep] b1
10
11explode b1 f
12copy b1_2 f1
13copy b1_3 f2
14copy b1_6 f3
15mksurface s1 f1
16mksurface s2 f2
17mksurface s3 f3
18
19puts ""
20puts "First test"
21# 1.1 geometry
22intersect i s1 s2
23
24#donly i_22; fit
25
6d368502 26xdistcs i_22 s1 0 1 10 1e-7
00302ba4 27
28puts ""
29puts "Second test"
30# 1.2 topology
31bsection r f1 f2
32bopcheck r
33# r is self interfered
34explode r e
35mkcurve c r_1
36
37#donly r_1; fit
38
6d368502 39xdistcs c s1 0.0714822451660209 1 10 1e-12 1e-7
00302ba4 40
41puts ""
42puts "Third test"
43# 2.1 geometry
44intersect i s1 s3
45
46#donly i_4; fit
47
6d368502 48xdistcs i_4 s1 0 1 10 1e-6 1e-7
00302ba4 49
50puts ""
51puts "Fourth test"
52# 2.2 topology
53bsection r f1 f3
54bopcheck r
55#r is self interfered
56explode r
57mkcurve c r_1
58
59#donly r_1; fit
60
6d368502 61xdistcs c s1 0.0714822451660209 1 10 1e-12 1e-7