Obsolete code deleted.
Test case for issue CR26572
Small correction
}
}
}
- 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 ))
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"
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"
--- /dev/null
+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