mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023614: BRepMesh creates incorrect triangulation on the attached models
Added test cases bugs/mesh/bug23614_1 bug23614_2 bug23614_3 bug23614_4
This commit is contained in:
parent
fdabc2117e
commit
55f1e74d75
35
tests/bugs/mesh/bug23614_1
Normal file
35
tests/bugs/mesh/bug23614_1
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
||||
|
||||
|
35
tests/bugs/mesh/bug23614_2
Normal file
35
tests/bugs/mesh/bug23614_2
Normal file
@ -0,0 +1,35 @@
|
||||
puts "================"
|
||||
puts "CR23614"
|
||||
puts "================"
|
||||
puts ""
|
||||
#####################################################################
|
||||
# BRepMesh creates incorrect triangulation on the attached models
|
||||
#####################################################################
|
||||
|
||||
restore [locate_data_file bug23614_face2.brep] f2
|
||||
tclean f2
|
||||
incmesh f2 0.01
|
||||
set info [trinfo f2]
|
||||
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 f2
|
||||
set only_screen_axo 1
|
||||
|
||||
|
35
tests/bugs/mesh/bug23614_3
Normal file
35
tests/bugs/mesh/bug23614_3
Normal file
@ -0,0 +1,35 @@
|
||||
puts "================"
|
||||
puts "CR23614"
|
||||
puts "================"
|
||||
puts ""
|
||||
#####################################################################
|
||||
# BRepMesh creates incorrect triangulation on the attached models
|
||||
#####################################################################
|
||||
|
||||
restore [locate_data_file bug23614_face3.brep] f3
|
||||
tclean f3
|
||||
incmesh f3 0.01
|
||||
set info [trinfo f3]
|
||||
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 f3
|
||||
set only_screen_axo 1
|
||||
|
||||
|
35
tests/bugs/mesh/bug23614_4
Normal file
35
tests/bugs/mesh/bug23614_4
Normal file
@ -0,0 +1,35 @@
|
||||
puts "================"
|
||||
puts "CR23614"
|
||||
puts "================"
|
||||
puts ""
|
||||
#####################################################################
|
||||
# BRepMesh creates incorrect triangulation on the attached models
|
||||
#####################################################################
|
||||
|
||||
restore [locate_data_file bug23614_face4.brep] f4
|
||||
tclean f4
|
||||
incmesh f4 0.01
|
||||
set info [trinfo f4]
|
||||
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 f4
|
||||
set only_screen_axo 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user