1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0026635: UnifySameDomain loses internal edges

Treat internal edges in proper way to save them in the result.

The test "bugs heal bug26489_4" has been modified to reflect the actual behavior.

Test-case for issue #26635
This commit is contained in:
msv
2015-09-10 15:02:41 +03:00
committed by bugmaster
parent 3bf9a45f7a
commit 6a0c0b14da
3 changed files with 86 additions and 8 deletions

View File

@@ -39,11 +39,11 @@ Number of shapes in shape
EDGE : 4
WIRE : 1
FACE : 1
SHELL : 1
SHELL : 0
SOLID : 0
COMPSOLID : 0
COMPOUND : 0
SHAPE : 11
SHAPE : 10
"
checknbshapes x1 -ref ${nbshapes_expected} -t -m "x1 result provided by the class ShapeUpgrade_UnifySameDomain"
checknbshapes x2 -ref ${nbshapes_expected} -t -m "x2 result provided by the class ShapeUpgrade_UnifySameDomain"

25
tests/bugs/heal/bug26635 Normal file
View File

@@ -0,0 +1,25 @@
puts "========"
puts "OCC26635"
puts "========"
puts ""
########################################
# UnifySameDomain loses internal edges
########################################
restore [locate_data_file OCC26635_t0.brep] t0
restore [locate_data_file OCC26635_t1.brep] t1
restore [locate_data_file OCC26635_t2.brep] t2
bclear
baddobjects t0 t1
baddtools t2
bfillds
bbop r 1
unifysamedom ru r
set bug_info [bopargcheck ru #F]
if {$bug_info != "Shape(s) seem(s) to be valid for BOP.\n"} {
puts "ERROR: OCC26635 is reproduced."
}