1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

Update of tests database

Test for 0021134: checkshape command does not return faulty shapes.
Test for 0021494: Intersection between cone and sphere fails
Test for 0022642: Refactoring of ShapeFix_Wire::FixIntersectingEdges
Test for 0022732: Reading a STEP file produces invalid shape
This commit is contained in:
apv 2017-10-12 10:57:25 +03:00 committed by bugmaster
parent 7f83633f7e
commit dfc3f102e6
4 changed files with 68 additions and 0 deletions

14
tests/bugs/heal/bug22642 Normal file
View File

@ -0,0 +1,14 @@
puts "TODO OCC22642 ALL: Faulty shapes in variables faulty_1 to faulty_"
puts "========"
puts "OCC22642"
puts "========"
puts ""
######################################################
# Refactoring of ShapeFix_Wire::FixIntersectingEdges
######################################################
restore [locate_data_file bug22642_ss_47.brep] f
fixshape result f -l -o -h -m -d -s +i -n
checkshape result

18
tests/bugs/modalg_7/bug21134 Executable file
View File

@ -0,0 +1,18 @@
puts "TODO OCC21134 ALL: Error: checkshape command does not return faulty shapes"
puts "============"
puts "OCC21134"
puts "============"
puts ""
######################################################
# checkshape command does not return faulty shapes.
######################################################
restore [locate_data_file bug21134_r.brep] res
checkshape res
set Log [bopcheck res]
if {[regexp "This shape seems to be OK" ${Log}] != 1} {
puts "Error: checkshape command does not return faulty shapes."
}

View File

@ -0,0 +1,22 @@
puts "TODO OCC21494 ALL: Error: Intersection between cone and sphere fails"
puts "========"
puts "OCC21494"
puts "========"
puts ""
############################################
# Intersection between cone and sphere fails
############################################
pcone c 15 0 10
psphere s 10
explode c f
explode s f
mksurface sc c_1
mksurface ss s_1
intersect i sc ss
if { [info exist i_1] == 0 } {
puts "Error: Intersection between cone and sphere fails"
}

14
tests/bugs/step/bug22732 Normal file
View File

@ -0,0 +1,14 @@
puts "TODO OCC22732 ALL: Faulty shapes in variables faulty_1 to faulty_"
puts "========"
puts "OCC22732"
puts "========"
puts ""
##############################################
# Reading a STEP file produces invalid shape
##############################################
ReadStep D1 [locate_data_file bug22732_MASTER_ASSEMBLE.stp]
XGetOneShape result D1
checkshape result