1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00
occt/tests/bugs/heal/bug26219_1
isn 4a934783ee 0026219: ShapeUpgrade_UnifySameDomain fails with StdFail_NotDone exception
Avoid merging edges if the collapsed vertex has a third connected edge.
Fix the problem when merged edges have different location.
Test case for issue CR26219

Additional fix to improve robustness.

Test cases for issue CR26219

Small correction of test cases for issue CR26219
2015-09-02 14:37:58 +03:00

49 lines
1.2 KiB
Plaintext

puts "========================"
puts " OCC26219"
puts "========================"
puts ""
###########################################################
## ShapeUpgrade_UnifySameDomain fails with StdFail_NotDone exception
###########################################################
restore [locate_data_file bug26219_unifysamedomain.valid_input.brep] p
# -----------------------------------------------------------------------------
# Attempt to simplify the model
# -----------------------------------------------------------------------------
set nbshapes_before_simplify "
Number of shapes in shape
VERTEX : 200
EDGE : 348
WIRE : 150
FACE : 150
SHELL : 1
SOLID : 1
COMPSOLID : 0
COMPOUND : 1
SHAPE : 851
"
checknbshapes p -ref ${nbshapes_before_simplify} -t -m "result before attempt to simplify the model"
axo; donly p; fit
xwd ${imagedir}/${casename}_1.png
unifysamedom p p
set nbshapes_after_simplify "
Number of shapes in shape
VERTEX : 132
EDGE : 196
WIRE : 66
FACE : 66
SHELL : 1
SOLID : 1
COMPSOLID : 0
COMPOUND : 1
SHAPE : 463
"
checknbshapes p -ref ${nbshapes_after_simplify} -t -m "result after attempt to simplify the model"
xwd ${imagedir}/${casename}_2.png