mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51: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;
|
Standard_Boolean IsClosed = Standard_False;
|
||||||
if (VF.IsSame ( VL ))
|
if (VF.IsSame ( VL ))
|
||||||
|
@ -33,15 +33,15 @@ unifysamedom p p
|
|||||||
|
|
||||||
set nbshapes_after_simplify "
|
set nbshapes_after_simplify "
|
||||||
Number of shapes in shape
|
Number of shapes in shape
|
||||||
VERTEX : 132
|
VERTEX : 130
|
||||||
EDGE : 196
|
EDGE : 194
|
||||||
WIRE : 66
|
WIRE : 66
|
||||||
FACE : 66
|
FACE : 66
|
||||||
SHELL : 1
|
SHELL : 1
|
||||||
SOLID : 1
|
SOLID : 1
|
||||||
COMPSOLID : 0
|
COMPSOLID : 0
|
||||||
COMPOUND : 1
|
COMPOUND : 1
|
||||||
SHAPE : 463
|
SHAPE : 459
|
||||||
"
|
"
|
||||||
checknbshapes p -ref ${nbshapes_after_simplify} -t -m "result after attempt to simplify the model"
|
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 "
|
set nbshapes_after_simplify "
|
||||||
Number of shapes in shape
|
Number of shapes in shape
|
||||||
VERTEX : 84
|
VERTEX : 82
|
||||||
EDGE : 127
|
EDGE : 125
|
||||||
WIRE : 51
|
WIRE : 51
|
||||||
FACE : 44
|
FACE : 44
|
||||||
SHELL : 1
|
SHELL : 1
|
||||||
SOLID : 1
|
SOLID : 1
|
||||||
COMPSOLID : 0
|
COMPSOLID : 0
|
||||||
COMPOUND : 0
|
COMPOUND : 0
|
||||||
SHAPE : 308
|
SHAPE : 304
|
||||||
"
|
"
|
||||||
checknbshapes p -ref ${nbshapes_after_simplify} -t -m "result after attempt to simplify the model"
|
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