1 # test for #21593: compare number of triangles/nodes
2 # produced by BRepMesh for face with internal vertices
3 # depening on value of InternalVerticesMode flag.
5 restore [locate_data_file bug21593_internal_vertices.brep] a
7 # enable internal vertices mode
10 set trinfo_a [trinfo a]
11 regexp {([0-9]+) triangles} $trinfo_a str nbtriangles_a
12 regexp {([0-9]+) nodes} $trinfo_a str nbnodes_a
15 if { $nbtriangles_a != 10 } {
16 puts "Error: incorrect number of triangles in case of internal vertices mode is ON ($nbtriangles_a)"
20 if { $nbnodes_a != 8 } {
21 puts "Error: incorrect number of nodes in case of internal vertices mode is ON ($nbnodes_a)"
25 # disable internal vertices mode
27 incmesh a 0.1 -int_vert_off
28 set trinfo_a [trinfo a]
29 regexp {([0-9]+) triangles} $trinfo_a str nbtriangles_a
30 regexp {([0-9]+) nodes} $trinfo_a str nbnodes_a
33 if { $nbtriangles_a != 2 } {
34 puts "Error: incorrect number of triangles in case of internal vertices mode is OFF ($nbtriangles_a)"
38 if { $nbnodes_a != 4 } {
39 puts "Error: incorrect number of nodes in case of internal vertices mode is OFF ($nbnodes_a)"