b5d10f2dbf1f83b8a6e4b85e6caf5e8488fec34f
[occt.git] / tests / bugs / xde / bug22898
1 puts "TODO OCC24156 MacOS: Error: unsupported locale specification"
2
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 if { [checkplatform -linux] } {
8   dlocale LC_ALL fr_FR
9 } else {
10   dlocale LC_ALL French
11 }
12
13 pload MODELING
14 pload XSTEP
15
16 # original shape
17 restore [locate_data_file hammer.brep] hammer
18 checkshape hammer
19 tolerance hammer
20 checkarea hammer 3.978e8 1e6 0.001
21
22 # BREP
23 save hammer $imagedir/hammer.brep
24 restore $imagedir/hammer.brep brep
25 checkshape brep
26 tolerance brep
27 checkarea brep 3.978e8 1e6 0.001
28
29 # IGES
30 brepiges hammer $imagedir/hammer.igs
31 igesbrep $imagedir/hammer.igs iges *
32 checkshape iges
33 tolerance iges
34 checkarea iges 3.978e8 1e6 0.001
35
36 # STEP
37 stepwrite a hammer $imagedir/hammer.stp
38 stepread $imagedir/hammer.stp step *
39 checkshape step_1
40 tolerance step_1
41 checkarea step_1 3.978e8 1e6 0.001
42
43 # STL
44 incmesh hammer 30
45 writestl hammer $imagedir/hammer.stl 
46 readstl stl $imagedir/hammer.stl -brep
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