X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_Polyline.cpp;h=ad58584efbbd56c0c07536f1331dfd1493fbc7b1;hb=c57d2a7f1a57af01656e47e2e510990492404fce;hp=312f1779082a6611a6930fb0f3a13eb2b31b9126;hpb=a276c3f6288ffcd67f1dab8323d7e4666a1aded7;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Polyline.cpp b/src/BuildPlugin/BuildPlugin_Polyline.cpp index 312f17790..ad58584ef 100644 --- a/src/BuildPlugin/BuildPlugin_Polyline.cpp +++ b/src/BuildPlugin/BuildPlugin_Polyline.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "BuildPlugin_Polyline.h" @@ -92,10 +91,10 @@ void BuildPlugin_Polyline::execute() // Create wire from edges GeomShapePtr aWire = GeomAlgoAPI_WireBuilder::wire(anEdges); - if (!aWire.get()) { - setError("Error: Result polyline is empty."); - return; - } + if (!aWire.get()) { + setError("Error: Result polyline is empty."); + return; + } // Check the wire. if (GeomAlgoAPI_WireBuilder::isSelfIntersected(aWire)) { @@ -115,7 +114,7 @@ void BuildPlugin_Polyline::execute() for (; anExp.more() && aPointsIt != aPoints.cend(); anExp.next(), ++aPointsIt) { GeomShapePtr aPoint = *aPointsIt; GeomShapePtr anEdge = anExp.current(); - aResultBody->generated(aPoint, anEdge, "Edge"); + aResultBody->generated(aPoint, anEdge); } if (!isClosed) {