0027322: geom/revolution_00/A1: Incorrect pcurve creation
[occt.git] / tests / bugs / vis / bug22849
CommitLineData
3bea4c16 1puts "============"
2puts "OCC22849"
3puts "============"
4puts ""
5#######################################################################
6# Bad import of a STEP file (error during triangulation)
7#######################################################################
8
9set BugNumber OCC22849
10
11catch {pload XDE}
12
13stepread [locate_data_file OCC22849-2520-6002_step.stp] a *
14checkshape a_1
15##tole a_1
16incmesh a_1 0.1
17tricheck a_1
18explode a_1 f
19
20set info1 [fromshape a_1_67]
21regexp {Shape a_1_67 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info1 full entity1
22set word1 [string compare $entity1 4973:#5009]
23
24set info2 [fromshape a_1_73]
25regexp {Shape a_1_73 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info2 full entity2
26set word2 [string compare $entity2 5157:#5193]
27
28set info3 [fromshape a_1_91]
29regexp {Shape a_1_91 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info3 full entity3
30set word3 [string compare $entity3 5659:#5695]
31
32if { ${word1} == 0 && ${word2} == 0 && ${word3} == 0 } {
33 puts "OK ${BugNumber}"
34} else {
35 puts "Faulty ${BugNumber}"
36}
37
5747059b 38checkview -display result -3d -path ${imagedir}/${test_image}.png