Changeset 899cc9 for src/Fragmentation/Exporters
- Timestamp:
- Sep 10, 2016, 4:14:02 PM (9 years ago)
- Branches:
- SaturateAtoms_singleDegree
- Children:
- 9ec12c
- Parents:
- bcf13b
- git-author:
- Frederik Heber <heber@…> (05/10/16 21:45:49)
- git-committer:
- Frederik Heber <heber@…> (09/10/16 16:14:02)
- Location:
- src/Fragmentation/Exporters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.cpp
rbcf13b r899cc9 603 603 return _newpolygon; 604 604 } 605 606 SphericalPointDistribution::Polygon_t 607 SphericalPointDistribution::getSimplePolygon(const int _NumberOfPoints) const 608 { 609 Polygon_t returnpolygon; 610 611 switch (_NumberOfPoints) 612 { 613 case 0: 614 returnpolygon = get<0>(); 615 break; 616 case 1: 617 returnpolygon = get<1>(); 618 break; 619 case 2: 620 returnpolygon = get<2>(); 621 break; 622 case 3: 623 returnpolygon = get<3>(); 624 break; 625 case 4: 626 returnpolygon = get<4>(); 627 break; 628 case 5: 629 returnpolygon = get<5>(); 630 break; 631 case 6: 632 returnpolygon = get<6>(); 633 break; 634 case 7: 635 returnpolygon = get<7>(); 636 break; 637 case 8: 638 returnpolygon = get<8>(); 639 break; 640 case 9: 641 returnpolygon = get<9>(); 642 break; 643 case 10: 644 returnpolygon = get<10>(); 645 break; 646 case 11: 647 returnpolygon = get<11>(); 648 break; 649 case 12: 650 returnpolygon = get<12>(); 651 break; 652 case 14: 653 returnpolygon = get<14>(); 654 break; 655 default: 656 ASSERT(0, "SphericalPointDistribution::initSelf() - cannot deal with the case " 657 +toString(_NumberOfPoints)+"."); 658 } 659 660 return returnpolygon; 661 } 662 -
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
rbcf13b r899cc9 55 55 ASSERT(0, "SphericalPointDistribution::get() - not specialized for "+toString(N)+"."); 56 56 } 57 58 /** Initializes the polygon with the given \a _NumberOfPoints. 59 * 60 * \param _NumberOfPoints number of points 61 */ 62 Polygon_t getSimplePolygon(const int _NumberOfPoints) const; 57 63 58 64 /** Matches a given spherical distribution with another containing more
Note:
See TracChangeset
for help on using the changeset viewer.