Ignore:
Timestamp:
Aug 20, 2014, 1:06:16 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
a2f8a9
Parents:
23c605
git-author:
Frederik Heber <heber@…> (07/09/14 21:14:53)
git-committer:
Frederik Heber <heber@…> (08/20/14 13:06:16)
Message:

Refactoring SphericalPointDistribution to combine point list and subset of indices.

File:
1 edited

Legend:

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

    r23c605 r1cde4e8  
    113113  static const double warn_amplitude;
    114114
     115  struct PolygonWithIndices
     116  {
     117    //!> array with points
     118    VectorArray_t polygon;
     119    //!> list with indices for the above points, defining subset
     120    IndexList_t indices;
     121  };
     122
    115123private:
    116124  //!> grant unit tests access to private parts
     
    123131
    124132  static Polygon_t removeMatchingPoints(
    125       const VectorArray_t &_points,
    126       const IndexList_t &_matchingindices
    127       );
     133      const PolygonWithIndices &_points);
    128134
    129135  struct MatchingControlStructure {
     
    157163
    158164  static Rotation_t findPlaneAligningRotation(
    159       const VectorArray_t &_referencepositions,
    160       const VectorArray_t &_currentpositions,
    161       const IndexList_t &_bestmatching
     165      const PolygonWithIndices &_referencepositions,
     166      const PolygonWithIndices &_currentpositions
    162167      );
    163168
    164169  static Rotation_t findPointAligningRotation(
    165       const VectorArray_t &remainingold,
    166       const VectorArray_t &remainingnew,
    167       const IndexList_t &_bestmatching);
     170      const PolygonWithIndices &remainingold,
     171      const PolygonWithIndices &remainingnew);
    168172
    169173};
Note: See TracChangeset for help on using the changeset viewer.