1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

Compare commits

..

1 Commits

Author SHA1 Message Date
apv
64ea47017a Test for 0024215: Error in offset (bad curve) 2017-07-25 17:09:06 +03:00
2 changed files with 27 additions and 40 deletions

View File

@@ -1,40 +0,0 @@
puts "TODO CR23671 Linux: Error"
puts "TODO CR23671 Linux: Draw_Failure: Could not open"
puts "============"
puts "CR23671"
puts "============"
puts ""
##########################################################################################################
# pload function does not work if $DRAWDEFAULT file has win format
##########################################################################################################
set aDrawPlugin [locate_data_file DrawPlugin]
set aDrawPluginDefaults [ file dirname ${aDrawPlugin} ]
dgetenv CSF_DrawPluginDefaults
dgetenv DRAWDEFAULT
dsetenv CSF_DrawPluginDefaults ${aDrawPluginDefaults}
dsetenv DRAWDEFAULT ${aDrawPlugin}
dgetenv CSF_DrawPluginDefaults
dgetenv DRAWDEFAULT
if [catch {pload} info] {
puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
} else {
puts "OK: pload function work if \$DRAWDEFAULT file has win format"
}
if [catch {pload -DrawPlugin} info] {
puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
} else {
puts "OK: pload function work if \$DRAWDEFAULT file has win format"
}
if [catch {pload XDE} info] {
puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
} else {
puts "OK: pload function work if \$DRAWDEFAULT file has win format"
}

View File

@@ -0,0 +1,27 @@
puts "TODO OCC24215 ALL: ERROR: OCC24215 is reproduced."
puts "========"
puts "OCC24215"
puts "========"
puts ""
###############################
# Error in offset (bad curve)
###############################
restore [locate_data_file bug24215_face-10-012.brep] f
mkoffset o f 1 0.4
set bug_info [lprops o_1]
# Length of o_1 SHOULD be less 58.8412 because offset is wrong and consists loop
# "if" statement SHOULD be corrected than issue will be fixed
if {[lindex $bug_info 2] == 58.8412} {
puts "ERROR: OCC24215 is reproduced."
}
vinit
vdisplay f
vdisplay o_1
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png