Ignore:
Timestamp:
Nov 26, 2009, 11:40:01 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
2c0e4e, 9600a7
Parents:
013ad57
Message:

removing automatic dissection on loading, Tesselations test now checks for return value only not for precise order of the triangles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r013ad57 ra68d44  
    15741574                else {
    15751575                  Log() << Verbose(2) << "File found and parsed." << endl;
    1576                   mol->SetNameFromFilename(argv[argptr]);
    1577                   molecules->ListOfMolecules.remove(mol);
    1578                   molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration);
    1579                   delete(mol);
    1580                   if (molecules->ListOfMolecules.size() != 0) {
    1581                     for (MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++)
    1582                       if ((*ListRunner)->ActiveFlag) {
    1583                         mol = *ListRunner;
    1584                         break;
    1585                       }
    1586                   }
     1576                  // @TODO rather do the dissection afterwards
     1577//                  mol->SetNameFromFilename(argv[argptr]);
     1578//                  molecules->ListOfMolecules.remove(mol);
     1579//                  molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration);
     1580//                  delete(mol);
     1581//                  if (molecules->ListOfMolecules.size() != 0) {
     1582//                    for (MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++)
     1583//                      if ((*ListRunner)->ActiveFlag) {
     1584//                        mol = *ListRunner;
     1585//                        break;
     1586//                      }
     1587//                  }
    15871588                  configPresent = present;
    15881589                }
     
    18031804                start = clock();
    18041805                LCList = new LinkedCell(Boundary, atof(argv[argptr])*2.);
    1805                 FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1]);
     1806                if (!FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1]))
     1807                  ExitFlag = 255;
    18061808                //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str());
    18071809                end = clock();
Note: See TracChangeset for help on using the changeset viewer.