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
