Changeset a68d44 for molecuilder/src
- Timestamp:
- Nov 26, 2009, 11:40:01 AM (16 years ago)
- Children:
- 2c0e4e, 9600a7
- Parents:
- 013ad57
- Location:
- molecuilder/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
r013ad57 ra68d44 946 946 * \param RADIUS radius of the virtual sphere 947 947 * \param *filename filename prefix for output of vertex data 948 */ 949 void FindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LCList, const double RADIUS, const char *filename = NULL) 948 * \return true - tesselation successful, false - tesselation failed 949 */ 950 bool FindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LCList, const double RADIUS, const char *filename = NULL) 950 951 { 951 952 Info FunctionInfo(__func__); 952 953 bool freeLC = false; 954 bool status = false; 953 955 CandidateForTesselation *baseline; 954 956 LineMap::iterator testline; … … 1017 1019 } 1018 1020 } 1019 // check envelope for consistency1020 1021 1022 // look whether all points are inside of the convex envelope, otherwise add them via degenerated triangles1023 //->InsertStraddlingPoints(mol, LCList);1021 // // check envelope for consistency 1022 // status = CheckListOfBaselines(TesselStruct); 1023 // 1024 // // look whether all points are inside of the convex envelope, otherwise add them via degenerated triangles 1025 // //->InsertStraddlingPoints(mol, LCList); 1024 1026 // mol->GoToFirst(); 1025 1027 // class TesselPoint *Runner = NULL; … … 1038 1040 // // Purges surplus triangles. 1039 1041 // TesselStruct->RemoveDegeneratedTriangles(); 1040 // 1041 //// check envelope for consistency1042 //CheckListOfBaselines(TesselStruct);1042 1043 // check envelope for consistency 1044 status = CheckListOfBaselines(TesselStruct); 1043 1045 1044 1046 // write final envelope … … 1048 1050 if (freeLC) 1049 1051 delete(LCList); 1052 1053 return status; 1050 1054 }; 1051 1055 -
molecuilder/src/boundary.hpp
r013ad57 ra68d44 53 53 Vector* FindEmbeddingHole(MoleculeListClass *mols, molecule *srcmol); 54 54 void FindNextSuitablePoint(class BoundaryTriangleSet *BaseTriangle, class BoundaryLineSet *BaseLine, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC); 55 voidFindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LC, const double RADIUS, const char *tempbasename);55 bool FindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LC, const double RADIUS, const char *tempbasename); 56 56 Boundaries *GetBoundaryPoints(const molecule *mol, Tesselation *&TesselStruct); 57 57 double * GetDiametersOfCluster(const Boundaries *BoundaryPtr, const molecule *mol, Tesselation *&TesselStruct, const bool IsAngstroem); -
molecuilder/src/builder.cpp
r013ad57 ra68d44 1574 1574 else { 1575 1575 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 // } 1587 1588 configPresent = present; 1588 1589 } … … 1803 1804 start = clock(); 1804 1805 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; 1806 1808 //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str()); 1807 1809 end = clock(); -
molecuilder/src/config.cpp
r013ad57 ra68d44 1069 1069 mol->SetNameFromFilename(filename); 1070 1070 mol->ActiveFlag = true; 1071 MolList->insert(mol); 1071 1072 1072 1073 // 4. dissect the molecule into connected subgraphs 1073 MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this); 1074 // don't do this here ... 1075 //MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this); 1074 1076 1075 1077 delete(mol);
Note:
See TracChangeset
for help on using the changeset viewer.