1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00
Files
occt/tests/bugs/mesh/bug23614_1
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

36 lines
836 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
checkview -screenshot -2d -path ${imagedir}/${test_image}.png