0025423: Incorrect result of splitting some shapes
[occt.git] / tests / bugs / modalg_6 / bug27383_2
1 puts "========"
2 puts "0027383: Modeling - improve handling of regularity on edges"
3 puts "========"
4 puts ""
5 puts "Check regularity setting on edges of cylinder split by angle"
6
7 # split of cylinder
8 pload MODELING
9 pcylinder p 2 10
10 DT_SplitAngle r p
11
12 explode r f
13 explode r_1 e
14 getedgeregularity r_1_2 r_1 r_2 ;# returns C0: regularity is not set at all
15 encoderegularity r
16 if { ! [regexp "CN" [getedgeregularity r_1_2 r_1 r_2]] } {
17   puts "Error: Invalid regularity of the edge, expected CN"
18 }
19
20 # make image in HLR mode as illustration
21 pload VISUALIZATION
22 vdisplay r
23 vfit
24 vhlr on
25 vdump ${imagedir}/${test_image}.png