From: skv Date: Wed, 18 Mar 2015 08:30:56 +0000 (+0300) Subject: 0022889: EDF GEOM 10310: GetSame does not return the right shape X-Git-Tag: V7_6_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c881ccaee2413ad57b799fd79d7b642081d70b5f;p=modules%2Fgeom.git 0022889: EDF GEOM 10310: GetSame does not return the right shape --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 450de941e..2afb575f3 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -4482,7 +4482,6 @@ static bool isSameEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) 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); - if(C1->DynamicType() == C2->DynamicType()) return true; //Check that both edges has the same geometry double range = U12-U11;