0026855: Draw commands to debug Boolean Operations Algorithm
[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 set anOS $tcl_platform(os)
8 if { ${anOS} == "Linux" } {
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 incmesh hammer 38.9076
46 writestl hammer $imagedir/hammer.stl 
47 readstl stl $imagedir/hammer.stl
48 checkshape stl
49 tolerance stl
50 checkarea stl 3.978e8 1e6 0.001
51
52 # VRML: reading does not work regardless of locale...
53 writevrml hammer $imagedir/hammer.vrml
54 #loadvrml vrml $imagedir/hammer.vrml
55 #checkshape vrml
56 #tolerance vrml