Ignore:
Timestamp:
Sep 10, 2016, 4:14:02 PM (9 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Revert "Removing SphericalPointDistribution::getSimplePolygon() to allow for easy rebasing of very old branch on top."

This reverts commit c8fd68b29755db45c6c61c8b73eba4c88480c5bf.

Conflicts:

src/Fragmentation/Exporters/SphericalPointDistribution.cpp

  • needed to reattach SphericalPointDistribution::getSimplifiedPolygon() that was removed in order to ease rebasing a very old branch on top.
Location:
src/Fragmentation/Exporters
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Exporters/SphericalPointDistribution.cpp

    rbcf13b r899cc9  
    603603    return _newpolygon;
    604604}
     605
     606SphericalPointDistribution::Polygon_t
     607SphericalPointDistribution::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  
    5555    ASSERT(0, "SphericalPointDistribution::get() - not specialized for "+toString(N)+".");
    5656  }
     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;
    5763
    5864  /** Matches a given spherical distribution with another containing more
Note: See TracChangeset for help on using the changeset viewer.