mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0025045: STEP Import fails to find all surfaces
Added test case Small corrections in test case
This commit is contained in:
parent
183acc2f10
commit
746f1ceb10
37
tests/bugs/mesh/bug25045
Normal file
37
tests/bugs/mesh/bug25045
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "OCC25045"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
###########################################
|
||||||
|
# STEP Import fails to find all surfaces
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
pload XDE
|
||||||
|
|
||||||
|
set refnbfaces 13
|
||||||
|
|
||||||
|
stepread [locate_data_file bug25045_ick_0433.stp] a *
|
||||||
|
renamevar a_1 result
|
||||||
|
|
||||||
|
#1
|
||||||
|
vinit
|
||||||
|
vsetdispmode 1
|
||||||
|
vbottom
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||||
|
|
||||||
|
#2
|
||||||
|
set log1 [explode result f]
|
||||||
|
set nbfaces [llength $log1]
|
||||||
|
|
||||||
|
#3
|
||||||
|
set log2 [tricheck result]
|
||||||
|
|
||||||
|
if { $nbfaces != $refnbfaces } {
|
||||||
|
puts "Error: Shape restored incorrectly - number of faces is different than expected value ($nbfaces != $refnbfaces)"
|
||||||
|
}
|
||||||
|
|
||||||
|
if { [llength $log2] != 0 } {
|
||||||
|
puts "Error: Some faces has failed to mesh"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user