Changeset ef5521 for molecuilder


Ignore:
Timestamp:
Aug 7, 2009, 12:46:27 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
609e48
Parents:
0fc0b5
Message:

BUGFIX: PointCloud implementation in molecule stopped one before last, IsLast() -> IsEnd()

Location:
molecuilder/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/linkedcell.cpp

    r0fc0b5 ref5521  
    5454  }
    5555  set->GoToFirst();
    56   while (!set->IsLast()) {
     56  while (!set->IsEnd()) {
    5757    Walker = set->GetPoint();
    5858    for (int i=0;i<NDIM;i++) {
     
    8787  cout << Verbose(2) << "Filling cells ... ";
    8888  set->GoToFirst();
    89   while (!set->IsLast()) {
     89  while (!set->IsEnd()) {
    9090    Walker = set->GetPoint();
    9191    for (int i=0;i<NDIM;i++) {
  • molecuilder/src/molecules.cpp

    r0fc0b5 ref5521  
    124124void molecule::GoToNext()
    125125{
    126   if (InternalPointer->next != end)
     126  if (InternalPointer != end)
    127127    InternalPointer = InternalPointer->next;
    128128};
     
    162162 * \return true - current atom is last one, false - is not last one
    163163 */
    164 bool molecule::IsLast()
    165 {
    166   return (InternalPointer->next == end);
     164bool molecule::IsEnd()
     165{
     166  return (InternalPointer == end);
    167167};
    168168
  • molecuilder/src/molecules.hpp

    r0fc0b5 ref5521  
    150150  void GoToLast();
    151151  bool IsEmpty();
    152   bool IsLast();
     152  bool IsEnd();
    153153
    154154  /// remove atoms from molecule.
  • molecuilder/src/tesselation.cpp

    r0fc0b5 ref5521  
    912912
    913913  cloud->GoToFirst();
    914   while (!cloud->IsLast()) {  // we only have to go once through all points, as boundary can become only bigger
     914  while (!cloud->IsEnd()) {  // we only have to go once through all points, as boundary can become only bigger
    915915    Walker = cloud->GetPoint();
    916916    *out << Verbose(2) << "Current point is " << *Walker << "." << endl;
     
    13251325  cout << Verbose(0) << "Begin of Find_next_suitable_triangle\n";
    13261326  bool result = true;
    1327   bool degenerateTriangle = false;
    13281327  CandidateList *Opt_Candidates = new CandidateList();
    13291328
  • molecuilder/src/tesselation.hpp

    r0fc0b5 ref5521  
    163163  virtual void GoToLast() {};
    164164  virtual bool IsEmpty() { return false; };
    165   virtual bool IsLast() { return false; };
     165  virtual bool IsEnd() { return false; };
    166166};
    167167
Note: See TracChangeset for help on using the changeset viewer.