0028414: Data Exchange, STEP - Face on a closed surface with single inner wire and...
[occt.git] / tests / de / step_1 / G9
1 # !!!! This file is generated automatically, do not edit manually! See end script
2 puts "TODO CR23096 ALL: NBSHAPES : Faulty" 
3 puts "TODO CR23096 ALL: STATSHAPE : Faulty" 
4 puts "TODO CR23096 ALL: LABELS : Faulty" 
5 puts "TODO CR23096 ALL: LAYERS : Faulty" 
6
7
8 set filename trj4_k1_geo-tu-214.stp
9
10 set ref_data {
11 DATA        : Faulties = 0  ( 0 )  Warnings = 0  ( 0 )  Summary  = 0  ( 0 )
12 TPSTAT      : Faulties = 0  ( 0 )  Warnings = 1  ( 10 )  Summary  = 1  ( 10 )
13 CHECKSHAPE  : Wires    = 0  ( 0 )  Faces    = 0  ( 0 )  Shells   = 0  ( 0 )   Solids   = 0 ( 0 )
14 NBSHAPES    : Solid    = 0  ( 0 )  Shell    = 44  ( 0 )  Face     = 44  ( 44 ) 
15 STATSHAPE   : Solid    = 0  ( 0 )  Shell    = 44  ( 0 )  Face     = 44  ( 44 )   FreeWire = 0  ( 0 ) 
16 TOLERANCE   : MaxTol   = 0.0004382667275  ( 0.007688098235 )  AvgTol   =  1.733347738e-005  (  0.0002416763952 )
17 LABELS      : N0Labels = 1  ( 1 )  N1Labels = 44  ( 44 )  N2Labels = 0  ( 0 )   TotalLabels = 45  ( 45 )   NameLabels = 1  ( 1 )   ColorLabels = 44  ( 44 )   LayerLabels = 0  ( 44 )
18 PROPS       : Centroid = 0  ( 0 )  Volume   = 0  ( 0 )  Area     = 0  ( 0 )
19 NCOLORS     : NColors  = 1  ( 1 )
20 COLORS      : Colors   = GREEN  ( GREEN )
21 NLAYERS     : NLayers  = 0  ( 1 )
22 LAYERS      : Layers   =   ( 001 )
23
24 }
25
26 # Due to the ambiguous interpretation of the "inner" wire on the surfaces
27 # that have natural bound (is it the cutout in the whole surface, or it's just wrong wire orientation),
28 # we must manually turn off the adding of the natural bound option of the shape healing for this test.
29
30 set de_use_custom_scripts 1
31
32 proc de_before_script {TheFileName} {
33     if { [info exists imagedir] == 0 } {
34        set imagedir ../[file rootname $TheFileName]
35        if {![file exists ${imagedir}]} {
36            file mkdir ${imagedir}
37        }
38     }
39     # remember the path to the old resource file
40     set old_resource_path $::env(CSF_STEPDefaults)
41     # reading old resource file
42     set anOptions [parse_resource_file "${old_resource_path}/STEP"]
43     # activation of ignoring the adding of natural bound
44     dict set anOptions "FromSTEP.FixShape.FixAddNaturalBoundMode" "0"
45     # path to new resource file
46     set new_resource_path ${imagedir}
47     # creating resource file
48     create_resource_file "${new_resource_path}/STEP" $anOptions
49     # changing the path to the resource file
50     set ::env(CSF_STEPDefaults) ${new_resource_path}
51     puts "New path to STEP resource file is: \"${new_resource_path}\""
52     
53     return ${old_resource_path}
54 }
55
56 proc de_after_script {old_resource_path} {
57    # Restoring the path to the old resource file
58    set ::env(CSF_STEPDefaults) ${old_resource_path}
59    puts "Restore path to STEP resource file: \"${old_resource_path}\""
60 }