mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0026572: Error in ShapeUpgrade_UnifySameDomain algorithm: can not merge two edges in customer's shape
Obsolete code deleted. Test case for issue CR26572 Small correction
This commit is contained in:
parent
5212bbb005
commit
f2d685a9cb
@ -848,12 +848,6 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
|
||||
}
|
||||
}
|
||||
}
|
||||
if(aChain.Length()<SeqEdges1.Length()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"can not create correct chain..."<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
Standard_Boolean IsClosed = Standard_False;
|
||||
if (VF.IsSame ( VL ))
|
||||
|
@ -33,15 +33,15 @@ unifysamedom p p
|
||||
|
||||
set nbshapes_after_simplify "
|
||||
Number of shapes in shape
|
||||
VERTEX : 132
|
||||
EDGE : 196
|
||||
VERTEX : 130
|
||||
EDGE : 194
|
||||
WIRE : 66
|
||||
FACE : 66
|
||||
SHELL : 1
|
||||
SOLID : 1
|
||||
COMPSOLID : 0
|
||||
COMPOUND : 1
|
||||
SHAPE : 463
|
||||
SHAPE : 459
|
||||
"
|
||||
checknbshapes p -ref ${nbshapes_after_simplify} -t -m "result after attempt to simplify the model"
|
||||
|
||||
|
@ -279,15 +279,15 @@ unifysamedom p p
|
||||
|
||||
set nbshapes_after_simplify "
|
||||
Number of shapes in shape
|
||||
VERTEX : 84
|
||||
EDGE : 127
|
||||
VERTEX : 82
|
||||
EDGE : 125
|
||||
WIRE : 51
|
||||
FACE : 44
|
||||
SHELL : 1
|
||||
SOLID : 1
|
||||
COMPSOLID : 0
|
||||
COMPOUND : 0
|
||||
SHAPE : 308
|
||||
SHAPE : 304
|
||||
"
|
||||
checknbshapes p -ref ${nbshapes_after_simplify} -t -m "result after attempt to simplify the model"
|
||||
|
||||
|
36
tests/bugs/heal/bug26572
Normal file
36
tests/bugs/heal/bug26572
Normal file
@ -0,0 +1,36 @@
|
||||
puts "========"
|
||||
puts "OCC26572"
|
||||
puts "========"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Error in ShapeUpgrade_UnifySameDomain algorithm: can not merge two edges in customer's shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file bug26572_issue_12_new_input.brep] s
|
||||
|
||||
nbshapes s -t
|
||||
|
||||
smallview
|
||||
donly s
|
||||
fit
|
||||
xwd ${imagedir}/${casename}_1.png
|
||||
|
||||
unifysamedom res s
|
||||
|
||||
set nbshapes_expected "
|
||||
Number of shapes in shape
|
||||
VERTEX : 48
|
||||
EDGE : 72
|
||||
WIRE : 28
|
||||
FACE : 27
|
||||
SHELL : 1
|
||||
SOLID : 1
|
||||
COMPSOLID : 0
|
||||
COMPOUND : 1
|
||||
SHAPE : 178
|
||||
"
|
||||
checknbshapes res -ref ${nbshapes_expected} -t -m "Shape Upgrade"
|
||||
|
||||
donly res
|
||||
|
||||
xwd ${imagedir}/${casename}_2.png
|
Loading…
x
Reference in New Issue
Block a user