mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-30 13:05:50 +03:00
- 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
42 lines
1003 B
Plaintext
Executable File
42 lines
1003 B
Plaintext
Executable File
puts "========"
|
|
puts "OCC319"
|
|
puts "========"
|
|
puts ""
|
|
######################################################
|
|
# Wrong shading on a shape
|
|
######################################################
|
|
|
|
cpulimit 3500
|
|
|
|
restore [locate_data_file OCC319.brep] result
|
|
|
|
tclean result
|
|
vinit
|
|
vdisplay result
|
|
vsetdispmode result 1
|
|
vfit
|
|
|
|
set scale 16.5593321780929
|
|
set proj_X 0.207536488771439
|
|
set proj_Y -0.233648166060448
|
|
set proj_Z 0.949914216995239
|
|
set up_X -0.857990384101868
|
|
set up_Y 0.422952175140381
|
|
set up_Z 0.291485607624054
|
|
set at_X -1.78904829452738
|
|
set at_Y 1.90614280957802
|
|
set at_Z 6.47028180612483
|
|
|
|
vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
|
|
|
|
set info [trinfo result]
|
|
regexp { +([-0-9.+eE]+) +triangles} $info full tri
|
|
regexp { +([-0-9.+eE]+) +nodes} $info full nod
|
|
|
|
if { $tri == 0 || $nod == 0 } {
|
|
puts "Faulty OCC319: here is shading problem"
|
|
}
|
|
|
|
checkprops result -s 8623.6
|
|
set only_screen 1
|