1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-15 11:44:07 +03:00
occt/tests/bugs/modalg_1/buc60926
ski 58cf74e0c0 0025945: Make stable checking of shape global properties in tests
- Added function checkprops, set default tolerance parameter to 1.0e-4
- Using "area" instead of "square".
- Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases.
- Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1)
- Corrected test cases to use checkprops proc.
- Correct image difference
- Updated TODOs in test cases.
- Updated test cases to get correct images of result shape
2015-12-10 16:56:03 +03:00

22 lines
598 B
Plaintext
Executable File

puts "============"
puts "BUC60926"
puts "============"
puts ""
######################################################################
## Creating a sphere of radius 1 at 0,0,0 and a cone with r1=1 r2=2 height=2 angle=3*PI/2 at 1,1,0 and
## then using BRepAlgoAPI_Fuse on the two solids will trigger a segmentation fault.
######################################################################
restore [locate_data_file shading_132.brep] a
checkshape a
restore [locate_data_file BUC60926-2.brep] b
checkshape b
bfuse result a b
checkprops result -s 41.7175
checkshape result
set 2dviewer 0