Commit | Line | Data |
---|---|---|
7b1c1b7c RL |
1 | puts "============" |
2 | puts "OCC25971" | |
3 | puts "============" | |
4 | puts "" | |
5 | ####################################################################### | |
6 | # Near B-Spline knots get merged after saving/restoring (exporting/importing) | |
7 | ####################################################################### | |
8 | ||
9 | pload XDE | |
10 | ||
11 | restore [locate_data_file bug25971_a_328_1.brep] a | |
12 | ||
13 | fixshape f a 1e-6 | |
14 | explode f e | |
15 | ||
16 | dump f_4 | |
17 | ||
18 | newmodel | |
19 | set aFile ${imagedir}/bug25971.stp | |
20 | catch { file delete ${aFile} } | |
21 | ||
22 | stepwrite a a ${aFile} | |
23 | ||
24 | stepread ${aFile} ff * | |
25 | ||
26 | catch { file delete ${aFile} } | |
27 | ||
28 | set nbshapes_expected " | |
29 | Number of shapes in shape | |
30 | VERTEX : 4 | |
31 | EDGE : 5 | |
32 | WIRE : 1 | |
33 | FACE : 1 | |
34 | SHELL : 1 | |
35 | SOLID : 0 | |
36 | COMPSOLID : 0 | |
37 | COMPOUND : 0 | |
38 | SHAPE : 12 | |
39 | " | |
40 | checknbshapes ff_1 -ref ${nbshapes_expected} -t -m "Saved shape" | |
41 | ||
42 | tpstat c ; #Exception caught for the shell | |
43 | ||
44 | vinit View1 | |
45 | vdisplay a | |
46 | vfit | |
47 | vdump ${imagedir}/${casename}_1.png | |
48 | ||
49 | vinit View2 | |
50 | vdisplay ff_1 | |
51 | vfit | |
52 | vdump ${imagedir}/${casename}_2.png |