-// Copyright (C) 2020 CEA/DEN, EDF R&D
+// Copyright (C) 2020-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
std::list<GeomPointPtr>& thePoints);
static GeomEdgePtr buildInterpolationCurve(SketchPlugin_Sketch* theSketch,
- AttributeRefAttrListPtr& thePoints,
+ AttributeRefAttrListPtr thePoints,
bool thePeriodic,
bool theClosed);
static GeomEdgePtr buildApproximationCurve(SketchPlugin_Sketch* theSketch,
- AttributeRefAttrListPtr& thePoints,
+ AttributeRefAttrListPtr thePoints,
double thePrecision,
bool thePeriodic,
bool theClosed);
// to keep mapping between points and attributes
std::map<GeomPointPtr, std::pair<ObjectPtr, AttributePtr> > aMap;
std::list<std::pair<ObjectPtr, AttributePtr> > aPointsList = aPointsAttr->list();
- bool isPointAdded = aCoordinates.size() != aPointsList.size();
+
std::list<GeomPointPtr>::iterator aCoordIt = aCoordinates.begin();
std::list<std::pair<ObjectPtr, AttributePtr> >::iterator anAttrIt = aPointsList.begin();
for (; aCoordIt != aCoordinates.end() && anAttrIt != aPointsList.end(); ++aCoordIt, ++anAttrIt)
}
GeomEdgePtr buildInterpolationCurve(SketchPlugin_Sketch* theSketch,
- AttributeRefAttrListPtr& thePoints,
+ AttributeRefAttrListPtr thePoints,
bool thePeriodic,
bool theClosed)
{
}
GeomEdgePtr buildApproximationCurve(SketchPlugin_Sketch* theSketch,
- AttributeRefAttrListPtr& thePoints,
+ AttributeRefAttrListPtr thePoints,
double thePrecision,
bool thePeriodic,
bool theClosed)