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:
@@ -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
25
tests/bugs/heal/bug26635
Normal 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."
|
||||
}
|
||||
|
Reference in New Issue
Block a user