3cdfdc9a |
1 | puts "TODO OCC24156 MacOS: Error: unsupported locale specification" |
3cdfdc9a |
2 | |
91322f44 |
3 | # Test for issue #22898 and other functionality that can be affected by locale. |
4 | # Just run multiple conversions of the shape to and from diferent formats and |
5 | # check that the result is good shape with expected area |
6 | |
7 | set anOS $tcl_platform(os) |
3af9db62 |
8 | if { ${anOS} == "Linux" } { |
91322f44 |
9 | dlocale LC_ALL fr_FR |
10 | } else { |
11 | dlocale LC_ALL French |
12 | } |
13 | |
14 | pload MODELING |
15 | pload XSTEP |
16 | |
17 | # original shape |
18 | restore [locate_data_file hammer.brep] hammer |
19 | checkshape hammer |
20 | tolerance hammer |
21 | checkarea hammer 3.978e8 1e6 0.001 |
22 | |
23 | # BREP |
24 | save hammer $imagedir/hammer.brep |
25 | restore $imagedir/hammer.brep brep |
26 | checkshape brep |
27 | tolerance brep |
28 | checkarea brep 3.978e8 1e6 0.001 |
29 | |
30 | # IGES |
31 | brepiges hammer $imagedir/hammer.igs |
32 | igesbrep $imagedir/hammer.igs iges * |
33 | checkshape iges |
34 | tolerance iges |
35 | checkarea iges 3.978e8 1e6 0.001 |
36 | |
37 | # STEP |
38 | stepwrite a hammer $imagedir/hammer.stp |
39 | stepread $imagedir/hammer.stp step * |
40 | checkshape step_1 |
41 | tolerance step_1 |
42 | checkarea step_1 3.978e8 1e6 0.001 |
43 | |
44 | # STL |
45 | writestl hammer $imagedir/hammer.stl |
46 | readstl stl $imagedir/hammer.stl |
47 | checkshape stl |
48 | tolerance stl |
49 | checkarea stl 3.978e8 1e6 0.001 |
50 | |
51 | # VRML: reading does not work regardless of locale... |
52 | writevrml hammer $imagedir/hammer.vrml |
53 | #loadvrml vrml $imagedir/hammer.vrml |
54 | #checkshape vrml |
55 | #tolerance vrml |