From: vsr Date: Tue, 18 Aug 2015 11:18:20 +0000 (+0300) Subject: 0023115: [CEA 1545] Regression on KindOfShape method X-Git-Tag: V7_7_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=914938a458b9d78a1b7719a3c9f6b74d3c5f20a7;p=modules%2Fgeom.git 0023115: [CEA 1545] Regression on KindOfShape method Additional correction, to avoid duplicated information in result of operation --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index e60150562..17a54671f 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -532,20 +532,8 @@ GEOMImpl_IMeasureOperations::ShapeKind GEOMImpl_IMeasureOperations::KindOfShape if (anInfo.KindOfBounds() != GEOMAlgo_KB_INFINITE) { // (+) geompy.kind.PLANAR xo yo zo dx dy dz nb_edges nb_vertices - aKind = SK_PLANAR; - gp_Pnt aC = anInfo.Location(); - theDoubles->Append(aC.X()); - theDoubles->Append(aC.Y()); - theDoubles->Append(aC.Z()); - - gp_Ax3 anAx3 = anInfo.Position(); - gp_Dir aD = anAx3.Direction(); - theDoubles->Append(aD.X()); - theDoubles->Append(aD.Y()); - theDoubles->Append(aD.Z()); - theIntegers->Append(anInfo.NbSubShapes(TopAbs_EDGE)); theIntegers->Append(anInfo.NbSubShapes(TopAbs_VERTEX)); }