0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_2 / bug20964_2
CommitLineData
3bea4c16 1puts "============"
3306fdd9 2puts "OCC20964: Wrong result of cut operation for given shapes"
3bea4c16 3puts "============"
4puts ""
3bea4c16 5
3bea4c16 6restore [locate_data_file OCC20964_revsolid.brep] b1
3bea4c16 7restore [locate_data_file OCC20964_sphere.brep] b2
8
3306fdd9 9bclearobjects
10bcleartools
11baddobjects b1
12baddtools b2
13bfillds
3bea4c16 14
3306fdd9 15# COMMON
16bbop result 0
3bea4c16 17
3306fdd9 18checkprops result -s 5158.93
58cf74e0 19checkshape result
3bea4c16 20
3306fdd9 21set NbShapesRef "
22Number of shapes in .*
23 VERTEX : 8
24 EDGE : 12
25 WIRE : 6
26 FACE : 5
27 SHELL : 1
28 SOLID : 1
29 COMPSOLID : 0
30 COMPOUND : 1
31 SHAPE : 34
32"
33
34checknbshapes result -ref $NbShapesRef
35
36checkmaxtol result -ref 0.013928665225777443
37
38checkview -display result -2d -path ${imagedir}/${test_image}_axo.png
39
40vdisplay result
41vsetdispmode 1
42vviewparams -scale 15.9695 -proj 0.0161244 -0.535424 0.84443 -up -0.773936 0.528029 0.349583 -at 117.532 248.227 -4.41145e-007 -eye 118.783 206.661 65.5549
43
44if { [string compare "" [tricheck result] ] } {
45 puts "Error in triangulation"
46}
3bea4c16 47
3306fdd9 48checkview -screenshot -3d -path ${imagedir}/${test_image}_shade.png