1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00
occt/tests/bugs/mesh/bug25281
apn dbf0485ef0 0025281: BRepMesh_IncrementalMesh does not return
Added test case bugs/mesh/bug25281
2014-11-05 16:48:00 +03:00

34 lines
746 B
Plaintext

puts "========="
puts "CR25281"
puts "========="
puts ""
###############################################
# BRepMesh_IncrementalMesh does not return
###############################################
pload XDE
param xstep.cascade.unit M
stepread [locate_data_file bug25281_tess_infloop_extract.step] a *
incmesh a_1 0.0002 1
set trinfo_s [trinfo a_1]
regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
if { ${nbtri_s} == 0 } {
puts "Error: shape contains 0 triangles"
} else {
puts "OK: shape contains ${nbtri_s} triangles"
}
if { ${nbnod_s} == 0 } {
puts "Error: shape contains 0 nodes"
} else {
puts "OK: shape contains ${nbnod_s} nodes"
}
vinit
vdisplay a_1
vfit
set only_screen 1