mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-15 13:51:21 +05:00
NPAL14167: correct error on compound with sphere.
This commit is contained in:
parent
a9c82453f1
commit
3182a66c95
@ -799,8 +799,6 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::MakeExplode
|
|||||||
TopExp::MapShapes(aShape, anIndices);
|
TopExp::MapShapes(aShape, anIndices);
|
||||||
Handle(TColStd_HArray1OfInteger) anArray;
|
Handle(TColStd_HArray1OfInteger) anArray;
|
||||||
|
|
||||||
Standard_Integer nbAllSubShape = anIndices.Extent();
|
|
||||||
|
|
||||||
TopTools_ListIteratorOfListOfShape itSub (listShape);
|
TopTools_ListIteratorOfListOfShape itSub (listShape);
|
||||||
TCollection_AsciiString anAsciiList, anEntry;
|
TCollection_AsciiString anAsciiList, anEntry;
|
||||||
for (int index = 1; itSub.More(); itSub.Next(), ++index)
|
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(!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;
|
double U11, U12, U21, U22;
|
||||||
Handle(Geom_Curve) C1 = BRep_Tool::Curve(theEdge1, U11, U12);
|
Handle(Geom_Curve) C1 = BRep_Tool::Curve(theEdge1, U11, U12);
|
||||||
Handle(Geom_Curve) C2 = BRep_Tool::Curve(theEdge2, U21, U22);
|
Handle(Geom_Curve) C2 = BRep_Tool::Curve(theEdge2, U21, U22);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user