mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030785: Mesh - protect BRepMesh_IncrementalMesh::Perform from raising exception
IMeshTools_ModelAlgo and IMeshTools_ModelBuilder have been changed to provide exception protected interfaces for performing the operations. Protect single Edge/Face discretization methods from raising exceptions to skip broken Edges/Faces and allow mesh construction on the whole model.
This commit is contained in:
15
tests/bugs/mesh/bug30785
Normal file
15
tests/bugs/mesh/bug30785
Normal file
@@ -0,0 +1,15 @@
|
||||
puts "========="
|
||||
puts "0030785: Mesh - protect BRepMesh_IncrementalMesh::Perform from crash"
|
||||
puts "========="
|
||||
puts ""
|
||||
|
||||
puts "REQUIRED All: Failure"
|
||||
|
||||
restore [locate_data_file bug30785.brep] s
|
||||
|
||||
# just check if the exception is not raised
|
||||
if {[catch {incmesh s 0.1}]} {
|
||||
puts "Error: Exception is raised by BRepMesh_IncrementalMesh"
|
||||
}
|
||||
|
||||
checktrinfo s -tri
|
Reference in New Issue
Block a user