1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00
occt/tests/bugs/mesh/bug23614_1
apn 55f1e74d75 0023614: BRepMesh creates incorrect triangulation on the attached models
Added test cases bugs/mesh/bug23614_1 bug23614_2 bug23614_3 bug23614_4
2013-07-25 12:57:39 +04:00

36 lines
796 B
Plaintext

puts "================"
puts "CR23614"
puts "================"
puts ""
#####################################################################
# BRepMesh creates incorrect triangulation on the attached models
#####################################################################
restore [locate_data_file bug23614_face1.brep] f1
tclean f1
incmesh f1 0.01
set info [trinfo f1]
regexp {([0-9]+) triangles} $info full tri
regexp {([0-9]+) nodes} $info full nod
# compare number of triangles
if { $tri == 0 } {
puts "Error: face contains $tri triangles"
} else {
puts "OK: face contains $tri triangles"
}
# compare number of nodes
if { $nod == 0 } {
puts "Error : face contains $nod nodes"
} else {
puts "OK: face contains $nod nodes"
}
top
fit
triangles f1
set only_screen_axo 1