Changeset d22a30 for molecuilder


Ignore:
Timestamp:
Apr 22, 2010, 2:07:14 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
fda112
Parents:
2cd534
Message:

small changes to tesselation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.cpp

    r2cd534 rd22a30  
    77
    88#include <fstream>
     9#include <assert.h>
    910
    1011#include "helpers.hpp"
     
    25382539    baseline = Runner->second;
    25392540    if (baseline->pointlist.empty()) {
     2541      assert((baseline->BaseLine->triangles.size() == 1) && ("Open line without exactly one attached triangle"));
    25402542      T = (((baseline->BaseLine->triangles.begin()))->second);
    25412543      DoLog(1) && (Log() << Verbose(1) << "Finding best candidate for open line " << *baseline->BaseLine << " of triangle " << *T << endl);
     
    25902592    if (Sprinter != connectedClosestPoints->end()) {
    25912593      // fill the internal open lines with its respective candidate (otherwise lines in degenerate case are not picked)
    2592       FindDegeneratedCandidatesforOpenLines(*Sprinter, &CandidateLine.OptCenter);
     2594      FindDegeneratedCandidatesforOpenLines(*Sprinter, &CandidateLine.OptCenter); // Assume BTS contains last triangle
    25932595      DoLog(0) && (Log() << Verbose(0) << " There are still more triangles to add." << endl);
    25942596    }
     
    26312633      else {
    26322634        DoLog(1) && (Log() << Verbose(1) << "INFO: line " << *(FindLine->second) << " is open with no candidate, setting to next Sprinter" << (*Sprinter) << endl);
     2635        Finder->second->T = BTS;  // is last triangle
    26332636        Finder->second->pointlist.push_back(Sprinter);
    26342637        Finder->second->ShortestAngle = 0.;
Note: See TracChangeset for help on using the changeset viewer.