0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / step / bug31685_1
CommitLineData
14abc514 1puts "==================================================="
2puts " 0031685: Data Exchange, STEPCAFControl_Reader - NULL dereference on translating PLACED_DATUM_TARGET_FEATURE "
3puts "==================================================="
4puts ""
5
6pload DCAF
7
8# Read file
9ReadStep D [locate_data_file bug31685_1.stp]
10XGetOneShape res D
11
12# Checking
13checkshape res f
14set dump [XDumpNbDGTs D f]
15set info "
16
2b5ee7c7 17 NbOfDimensions : 15
14abc514 18 NbOfDimensionalSize : 7
19 NbOfDimensionalLocation: 0
20 NbOfAngular : 0
21 NbOfWithPath : 0
2b5ee7c7 22 NbOfCommonLabels : 1
14abc514 23 NbOfTolerances : 22
24 NbOfGTWithModifiers : 4
25 NbOfGTWithMaxTolerance : 0
26 NbOfGTWithDatums : 20
27 NbOfDatumFeature : 13
28 NbOfAttachedDatum : 70
29 NbOfDatumTarget : 57
30"
31set isOK 1;
32set nb_ref [llength $dump]
33for { set i 0 } { $i < $nb_ref } { incr i } {
34 set refstr [lindex $info $i]
35 set curstr [lindex $dump $i]
36 if {[string equal $refstr $curstr] == 0} {
37 set isOK 0
38 }
39}
40if {$isOK == 0} {
41 puts "Error: wrong translate DGT"
42}
43
44Close D