0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_5 / bug24817
CommitLineData
5b14f800 1puts "========"
2puts "CR24817"
3puts "========"
4puts ""
5#########################################
6## Can not sew two circular faces in non-manifold mode
7#########################################
8
9# Create first face
10circle c 0 1 0 1
11trim c c 0.5*pi 1.5*pi
12mkedge e1 c
13line l 0 0 0 0 1 0
14trim l l 0 2
15mkedge e2 l
16wire w e1 e2
17mkplane plane1 w
18
19# Create second face
20circle c 0 1 0 1
21trim c c 1.5*pi 2.5*pi
22mkedge e1 c
23line l 0 0 0 0 1 0
24trim l l 0 2
25mkedge e2 l
26wire w e1 e2
27mkplane plane2 w
28
29# Create third face
30circle c 0 1 0 1 0 0 1
31trim c c 1.5*pi 2.5*pi
32mkedge e1 c
33line l 0 0 0 0 1 0
34trim l l 0 2
35mkedge e2 l
36wire w e1 e2
37mkplane plane3 w
38
39# Sew faces
40sewing sr1 plane1 plane2 +n
41sewing sr2 plane1 plane2 plane3 +n
42
43#
a4eba920 44checknbshapes sr1 -vertex 2 -edge 3 -wire 2 -face 2 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 10
5b14f800 45
58cf74e0 46checkprops sr1 -s 3.14159
5b14f800 47clear
48smallview
49donly sr1
50fit
51xwd $imagedir/${test_image}_1.png
52
53#
a4eba920 54checknbshapes sr2 -vertex 2 -edge 4 -wire 3 -face 3 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 13
5b14f800 55
58cf74e0 56checkprops sr2 -s 4.71239
5b14f800 57donly sr2
58fit
59xwd $imagedir/${test_image}_2.png
5ae01c85 60
fb60057d 61checkmaxtol sr1 -ref 1.0000000015308085e-007
5ae01c85 62checkfreebounds sr1 2
63
fb60057d 64checkmaxtol sr2 -ref 1.0000000015308085e-007
5ae01c85 65checkfreebounds sr2 0