X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=tests%2Fbugs%2Fmodalg_2%2Fbug20964_3;h=54e744cd786a09d7ea1c2698380cbff389a065d7;hp=ab9bcd494e7ec9b505ae11d832703b998eab9edc;hb=3306fdd954ad583d2652f0454612b6183176eb2e;hpb=d9d3107d8df19cacc3d7a0cd46ba51deee0bf6f2 diff --git a/tests/bugs/modalg_2/bug20964_3 b/tests/bugs/modalg_2/bug20964_3 index ab9bcd494e..54e744cd78 100755 --- a/tests/bugs/modalg_2/bug20964_3 +++ b/tests/bugs/modalg_2/bug20964_3 @@ -1,28 +1,48 @@ puts "============" -puts "OCC20964" +puts "OCC20964: Wrong result of cut operation for given shapes" puts "============" puts "" -####################################################################### -# Wrong result of cut operation for given shapes -####################################################################### -set BugNumber OCC20964 - -puts "Load first shape ..." restore [locate_data_file OCC20964_revsolid.brep] b1 -puts "Load second shape ..." restore [locate_data_file OCC20964_sphere.brep] b2 -puts "Prepare boolean operation ..." -bop b1 b2 +bclearobjects +bcleartools +baddobjects b1 +baddtools b2 +bfillds -puts "Start boolean operation ..." -bopfuse result -puts "Finish boolean operation ..." +# FUSE +bbop result 1 -checkprops result -s 828829 +checkprops result -s 828808 checkshape result -checknbshapes result -vertex 20 -edge 32 -wire 18 -face 16 -shell 3 -solid 1 -compsolid 0 -compound 1 -shape 91 +set NbShapesRef " +Number of shapes in .* + VERTEX : 20 + EDGE : 32 + WIRE : 18 + FACE : 16 + SHELL : 3 + SOLID : 1 + COMPSOLID : 0 + COMPOUND : 1 + SHAPE : 91 +" + +checknbshapes result -ref $NbShapesRef + +checkmaxtol result -ref 0.013928665225777443 + +checkview -display result -2d -path ${imagedir}/${test_image}_axo.png + +vdisplay result +vsetdispmode 1 +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 + +if { [string compare "" [tricheck result] ] } { + puts "Error in triangulation" +} -checkview -display result -2d -path ${imagedir}/${test_image}.png +checkview -screenshot -3d -path ${imagedir}/${test_image}_shade.png