3bea4c16 |
1 | puts "============" |
3306fdd9 |
2 | puts "OCC20964: Wrong result of cut operation for given shapes" |
3bea4c16 |
3 | puts "============" |
4 | puts "" |
3bea4c16 |
5 | |
3bea4c16 |
6 | restore [locate_data_file OCC20964_revsolid.brep] b1 |
3bea4c16 |
7 | restore [locate_data_file OCC20964_sphere.brep] b2 |
8 | |
3306fdd9 |
9 | bclearobjects |
10 | bcleartools |
11 | baddobjects b1 |
12 | baddtools b2 |
13 | bfillds |
3bea4c16 |
14 | |
3306fdd9 |
15 | # FUSE |
16 | bbop result 1 |
3bea4c16 |
17 | |
3306fdd9 |
18 | checkprops result -s 828808 |
58cf74e0 |
19 | checkshape result |
3bea4c16 |
20 | |
3306fdd9 |
21 | set NbShapesRef " |
22 | Number of shapes in .* |
23 | VERTEX : 20 |
24 | EDGE : 32 |
25 | WIRE : 18 |
26 | FACE : 16 |
27 | SHELL : 3 |
28 | SOLID : 1 |
29 | COMPSOLID : 0 |
30 | COMPOUND : 1 |
31 | SHAPE : 91 |
32 | " |
33 | |
34 | checknbshapes result -ref $NbShapesRef |
35 | |
36 | checkmaxtol result -ref 0.013928665225777443 |
37 | |
38 | checkview -display result -2d -path ${imagedir}/${test_image}_axo.png |
39 | |
40 | vdisplay result |
41 | vsetdispmode 1 |
42 | vviewparams -scale 5.62548 -proj 0.751453 0.00874872 0.659728 -up -0.600015 0.42493 0.677803 -at 99.378 322.007 8.81412 -eye 467.31 326.291 331.835 |
43 | |
44 | if { [string compare "" [tricheck result] ] } { |
45 | puts "Error in triangulation" |
46 | } |
3bea4c16 |
47 | |
3306fdd9 |
48 | checkview -screenshot -3d -path ${imagedir}/${test_image}_shade.png |