mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
Check is the shape to be meshed has correct poly data, i.e. PolygonOnTriangulation of particular edge connected to the same Triangulation data structure as stored inside a parent face. Adding test cases for issue CR23631 bugs/mesh/bug23631 Parallel checking of faces/edges Make BRepMesh_IncrementalMesh class imported from BRepMesh package. Resolve GCC warnings on Linux platform Fix compilation errors on MacOs: remove mutable modificator on reference fields.
38 lines
704 B
Plaintext
38 lines
704 B
Plaintext
puts "========"
|
|
puts "OCC23631"
|
|
puts "========"
|
|
puts ""
|
|
###########################################
|
|
## Infinite memory consumption in BRepMesh
|
|
###########################################
|
|
|
|
set BugNumber 23631
|
|
|
|
restore [locate_data_file OCC396_f2903.brep] result
|
|
|
|
incmesh result 0.01
|
|
triangles result
|
|
|
|
set tri 0
|
|
set nod 0
|
|
|
|
set good_tri 31
|
|
set good_nod 33
|
|
|
|
set tri_info [trinfo result]
|
|
regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
|
|
regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
|
|
|
|
if { ${tri} == ${good_tri} && ${nod} == ${good_nod} } {
|
|
puts "Bug ${BugNumber} shading: OK"
|
|
} else {
|
|
puts "Bug ${BugNumber} shading: Faulty"
|
|
}
|
|
|
|
vinit
|
|
vdisplay result
|
|
vfit
|
|
vsetdispmode 1
|
|
set only_screen 1
|
|
|