0030829: BRepExtrema_ShapeProximity crashes with shape from STL/WRL
[occt.git] / tests / bugs / iges / bug12567
CommitLineData
5c09f8e0 1puts "============"
2puts "OCC12567"
3puts "============"
4puts ""
5######################################################
6# Swapped first/last vertices or incorrect curve orientation after reading IGES file
7######################################################
8
9igesbrep [locate_data_file bug12567.igs] a *
10
11set tolerance [ maxtolerance a ]
12
13regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
14regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
15regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
16
17if { $MaxFaceTolerance > 1e-7 || $MaxEdgeTolerance > 1e-7 || $MaxVertexTolerance > 1e-7 } {
18 puts "Faulty : Tolerance of shape is more then 1e-7"
19} else {
20 puts "Tolerance of shape is <= then 1e-7"
21}
22
23view 1 -2D- 728 450 400 400
24pcurve a
252dfit
26
27checkview -screenshot -2d -path ${imagedir}/${test_image}.png