Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make SHAPER STUDY fields exported in SMESH into MED file
[modules/shaper.git]
/
src
/
BuildPlugin
/
BuildPlugin_Polyline.cpp
diff --git
a/src/BuildPlugin/BuildPlugin_Polyline.cpp
b/src/BuildPlugin/BuildPlugin_Polyline.cpp
index 7d2369c20897f2ea51f28a8bbbf4da0b885b4c88..ad58584efbbd56c0c07536f1331dfd1493fbc7b1 100644
(file)
--- a/
src/BuildPlugin/BuildPlugin_Polyline.cpp
+++ b/
src/BuildPlugin/BuildPlugin_Polyline.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
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
//
// 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
//
// 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<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "BuildPlugin_Polyline.h"
//
#include "BuildPlugin_Polyline.h"
@@
-92,10
+91,10
@@
void BuildPlugin_Polyline::execute()
// Create wire from edges
GeomShapePtr aWire = GeomAlgoAPI_WireBuilder::wire(anEdges);
// 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)) {
// Check the wire.
if (GeomAlgoAPI_WireBuilder::isSelfIntersected(aWire)) {
@@
-107,7
+106,7
@@
void BuildPlugin_Polyline::execute()
ResultBodyPtr aResultBody = document()->createBody(data());
std::set<GeomShapePtr>::const_iterator aContextIt = aContexts.begin();
for (; aContextIt != aContexts.end(); aContextIt++) {
ResultBodyPtr aResultBody = document()->createBody(data());
std::set<GeomShapePtr>::const_iterator aContextIt = aContexts.begin();
for (; aContextIt != aContexts.end(); aContextIt++) {
- aResultBody->storeModified(*aContextIt, aWire, aContextIt == aContexts.begin()
? 0 : -2
);
+ aResultBody->storeModified(*aContextIt, aWire, aContextIt == aContexts.begin());
}
aPointsIt = aPoints.cbegin();
}
aPointsIt = aPoints.cbegin();
@@
-115,7
+114,7
@@
void BuildPlugin_Polyline::execute()
for (; anExp.more() && aPointsIt != aPoints.cend(); anExp.next(), ++aPointsIt) {
GeomShapePtr aPoint = *aPointsIt;
GeomShapePtr anEdge = anExp.current();
for (; anExp.more() && aPointsIt != aPoints.cend(); anExp.next(), ++aPointsIt) {
GeomShapePtr aPoint = *aPointsIt;
GeomShapePtr anEdge = anExp.current();
- aResultBody->generated(aPoint, anEdge
, "Edge", 1
);
+ aResultBody->generated(aPoint, anEdge);
}
if (!isClosed) {
}
if (!isClosed) {
@@
-125,8
+124,8
@@
void BuildPlugin_Polyline::execute()
aResPoints.push_back(anExp.current());
}
aResPoints.push_back(anExp.current());
}
- aResultBody->generated(aResPoints.front(), "FirstVertex"
, 2
);
- aResultBody->generated(aResPoints.back(), "LastVertex"
, 3
);
+ aResultBody->generated(aResPoints.front(), "FirstVertex");
+ aResultBody->generated(aResPoints.back(), "LastVertex");
}
setResult(aResultBody);
}
setResult(aResultBody);