1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-10 11:34:06 +03:00
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

35 lines
916 B
Plaintext
Executable File

puts "========"
puts "OCC442"
puts "========"
puts ""
########################################################
## The Revolution Algo produces result, but during check using IsValid method from
## BRepAlgoAPI the exception is raised
########################################################
restore [locate_data_file OCC442.brep] a
checkshape a
explode a v
mkpoint p_1 a_1
mkpoint p_2 a_3
coord p_1 x1 y1 z1
coord p_2 x2 y2 z2
set ax [dval x1]
set ay [dval y1]
set az [dval z1]
set bx [dval x2]
set by [dval y2]
set bz [dval z2]
set dx [expr $ax - $bx]
set dy [expr $ay - $by]
set dz [expr $az - $bz]
revol result a $ax $ay $az $dx $dy $dz 360
checkprops result -s 692942
checkshape result
set 2dviewer 0