0030402: Data Exchange - exported VRML file has broken location information
[occt.git] / tests / bugs / xde / bug314
CommitLineData
0e94a94e 1puts "========"
2puts "OCC314"
3puts "========"
4puts ""
5
6param write.iges.brep.mode BRep
7
8restore [locate_data_file OCC314.brep] a1
9regexp { +Face +: +Min +([-0-9.+eE]+)} [maxtolerance a1] full MinFace1
10regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a1] full MaxFace1
11regexp { +Edge +: +Min +([-0-9.+eE]+)} [maxtolerance a1] full MinEdge1
12regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a1] full MaxEdge1
13regexp { +Vertex +: +Min +([-0-9.+eE]+)} [maxtolerance a1] full MinVertex1
14regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a1] full MaxVertex1
15
16######################################################################
17catch {exec rm ${imagedir}/OCC314.igs}
18brepiges a1 ${imagedir}/OCC314.igs
19
20igesbrep ${imagedir}/OCC314.igs a2 *
21
22tpcompound a2
23
24regexp { +Face +: +Min +([-0-9.+eE]+)} [maxtolerance a2] full MinFace2
25regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a2] full MaxFace2
26regexp { +Edge +: +Min +([-0-9.+eE]+)} [maxtolerance a2] full MinEdge2
27regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a2] full MaxEdge2
28regexp { +Vertex +: +Min +([-0-9.+eE]+)} [maxtolerance a2] full MinVertex2
29regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance a2] full MaxVertex2
30
31
32if { $MinFace2 > $MinFace1 } {
33 puts "Error : MinFace Tolerance is increased"
34}
35
36if { $MaxFace2 > $MaxFace1 } {
37 puts "Error : MaxFace Tolerance is increased"
38}
39
40if { $MinEdge2 > $MinEdge1 } {
41 puts "Error : MinEdge Tolerance is increased"
42}
43
44if { $MaxEdge2 > $MaxEdge1 } {
45 puts "Error : MaxEdge Tolerance is increased"
46}
47
48if { $MinVertex2 > $MinVertex1 } {
49 puts "Error : MinVertex Tolerance is increased"
50}
51
52if { $MaxVertex2 > $MaxVertex1 } {
53 puts "Error : MaxVertex Tolerance is increased"
54}
55
56renamevar a2 result
57
5747059b 58checkview -display result -2d -path ${imagedir}/${test_image}.png
0e94a94e 59