- Timestamp:
- Aug 20, 2014, 1:04:08 PM (11 years ago)
- Children:
- 1ae9aa
- Parents:
- 0710bf
- git-author:
- Frederik Heber <heber@…> (06/29/14 18:02:32)
- git-committer:
- Frederik Heber <heber@…> (08/20/14 13:04:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.cpp
r0710bf r260540 254 254 */ 255 255 SphericalPointDistribution::IndexList_t SphericalPointDistribution::findBestMatching( 256 const SphericalPointDistribution:: Polygon_t &_polygon,256 const SphericalPointDistribution::WeightedPolygon_t &_polygon, 257 257 const SphericalPointDistribution::Polygon_t &_newpolygon 258 258 ) … … 261 261 MCS.foundflag = false; 262 262 MCS.bestL2 = std::numeric_limits<double>::max(); 263 MCS.oldpoints.insert(MCS.oldpoints.begin(), _polygon.begin(),_polygon.end() ); 263 for (WeightedPolygon_t::const_iterator iter = _polygon.begin(); 264 iter != _polygon.end(); ++iter) 265 MCS.oldpoints.push_back(iter->first); 264 266 MCS.newpoints.insert(MCS.newpoints.begin(), _newpolygon.begin(),_newpolygon.end() ); 265 267 … … 489 491 SphericalPointDistribution::Polygon_t 490 492 SphericalPointDistribution::matchSphericalPointDistributions( 491 const SphericalPointDistribution:: Polygon_t &_polygon,493 const SphericalPointDistribution::WeightedPolygon_t &_polygon, 492 494 const SphericalPointDistribution::Polygon_t &_newpolygon 493 495 ) 494 496 { 495 497 SphericalPointDistribution::Polygon_t remainingpoints; 496 VectorArray_t remainingold(_polygon.begin(), _polygon.end()); 498 VectorArray_t remainingold; 499 for (WeightedPolygon_t::const_iterator iter = _polygon.begin(); 500 iter != _polygon.end(); ++iter) 501 remainingold.push_back(iter->first); 497 502 VectorArray_t remainingnew(_newpolygon.begin(), _newpolygon.end()); 498 503 LOG(2, "INFO: Matching old polygon " << _polygon
Note:
See TracChangeset
for help on using the changeset viewer.
