From: jfa Date: Tue, 22 Apr 2008 12:43:06 +0000 (+0000) Subject: NPAL14167: correct error on compound with sphere. X-Git-Tag: V4_1_2rc2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3182a66c95d983041fa998f0e6ce4d8a4f9ea929;p=modules%2Fgeom.git NPAL14167: correct error on compound with sphere. --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index e3647c3a0..035096fe1 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -799,8 +799,6 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::MakeExplode TopExp::MapShapes(aShape, anIndices); Handle(TColStd_HArray1OfInteger) anArray; - Standard_Integer nbAllSubShape = anIndices.Extent(); - TopTools_ListIteratorOfListOfShape itSub (listShape); TCollection_AsciiString anAsciiList, anEntry; for (int index = 1; itSub.More(); itSub.Next(), ++index) @@ -3267,6 +3265,12 @@ static bool isSameEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) if(!coincide) return false; + if (BRep_Tool::Degenerated(theEdge1)) + if (BRep_Tool::Degenerated(theEdge2)) return true; + else return false; + else + if (BRep_Tool::Degenerated(theEdge2)) return false; + double U11, U12, U21, U22; Handle(Geom_Curve) C1 = BRep_Tool::Curve(theEdge1, U11, U12); Handle(Geom_Curve) C2 = BRep_Tool::Curve(theEdge2, U21, U22);