Changeset 19bfb5 for src/Fragmentation/Exporters
- Timestamp:
- Sep 10, 2016, 4:14:01 PM (9 years ago)
- Branches:
- SaturateAtoms_singleDegree
- Children:
- 0096a40
- Parents:
- cdac1d
- git-author:
- Frederik Heber <heber@…> (05/10/16 20:35:20)
- git-committer:
- Frederik Heber <heber@…> (09/10/16 16:14:01)
- Location:
- src/Fragmentation/Exporters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.cpp
rcdac1d r19bfb5 308 308 } 309 309 } 310 LOG(3, "INFO: (x,y,z) angles are" << angles); 310 311 const Line RotationAxis(zeroVec, newCenter); 311 312 const double RotationAngle = 312 313 newCenter.Angle(remainingold[0]) 313 314 - newCenter.Angle(remainingnew[*MCS.bestmatching.begin()]); 315 LOG(3, "INFO: Rotate around self is " << RotationAngle 316 << " around axis " << RotationAxis); 314 317 315 318 // rotate _newpolygon 316 319 SphericalPointDistribution::Polygon_t rotated_newpolygon = 317 320 rotatePolygon(_newpolygon, angles, RotationAxis, RotationAngle); 321 LOG(3, "INFO: Rotated new polygon is " << rotated_newpolygon); 318 322 319 323 // remove all returnpolygon in matching and return remaining ones … … 322 326 return _newpolygon; 323 327 } 324 325 SphericalPointDistribution::Polygon_t326 SphericalPointDistribution::getSimplePolygon(const int _NumberOfPoints) const327 {328 Polygon_t returnpolygon;329 330 switch (_NumberOfPoints)331 {332 case 0:333 returnpolygon = get<0>();334 break;335 case 1:336 returnpolygon = get<1>();337 break;338 case 2:339 returnpolygon = get<2>();340 break;341 case 3:342 returnpolygon = get<3>();343 break;344 case 4:345 returnpolygon = get<4>();346 break;347 case 5:348 returnpolygon = get<5>();349 break;350 case 6:351 returnpolygon = get<6>();352 break;353 case 7:354 returnpolygon = get<7>();355 break;356 case 8:357 returnpolygon = get<8>();358 break;359 case 9:360 returnpolygon = get<9>();361 break;362 case 10:363 returnpolygon = get<10>();364 break;365 case 11:366 returnpolygon = get<11>();367 break;368 case 12:369 returnpolygon = get<12>();370 break;371 case 14:372 returnpolygon = get<14>();373 break;374 default:375 ASSERT(0, "SphericalPointDistribution::initSelf() - cannot deal with the case "376 +toString(_NumberOfPoints)+".");377 }378 379 return returnpolygon;380 }381 -
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
rcdac1d r19bfb5 56 56 } 57 57 58 /** Initializes the polygon with the given \a _NumberOfPoints.59 *60 * \param _NumberOfPoints number of points61 */62 Polygon_t getSimplePolygon(const int _NumberOfPoints) const;63 64 58 /** Matches a given spherical distribution with another containing more 65 59 * points.
Note:
See TracChangeset
for help on using the changeset viewer.