Ignore:
Timestamp:
May 25, 2016, 7:13:59 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
66700f2
Parents:
4d611d
git-author:
Frederik Heber <heber@…> (07/09/14 21:14:53)
git-committer:
Frederik Heber <heber@…> (05/25/16 07:13:59)
Message:

Refactoring SphericalPointDistribution to combine point list and subset of indices.

File:
1 edited

Legend:

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

    r4d611d r4b96da  
    104104  static const double warn_amplitude;
    105105
     106  struct PolygonWithIndices
     107  {
     108    //!> array with points
     109    VectorArray_t polygon;
     110    //!> list with indices for the above points, defining subset
     111    IndexList_t indices;
     112  };
     113
    106114private:
    107115  //!> grant unit tests access to private parts
     
    114122
    115123  static Polygon_t removeMatchingPoints(
    116       const VectorArray_t &_points,
    117       const IndexList_t &_matchingindices
    118       );
     124      const PolygonWithIndices &_points);
    119125
    120126  struct MatchingControlStructure {
     
    148154
    149155  static Rotation_t findPlaneAligningRotation(
    150       const VectorArray_t &_referencepositions,
    151       const VectorArray_t &_currentpositions,
    152       const IndexList_t &_bestmatching
     156      const PolygonWithIndices &_referencepositions,
     157      const PolygonWithIndices &_currentpositions
    153158      );
    154159
    155160  static Rotation_t findPointAligningRotation(
    156       const VectorArray_t &remainingold,
    157       const VectorArray_t &remainingnew,
    158       const IndexList_t &_bestmatching);
     161      const PolygonWithIndices &remainingold,
     162      const PolygonWithIndices &remainingnew);
    159163
    160164};
Note: See TracChangeset for help on using the changeset viewer.