Changeset afa056 for molecuilder/src
- Timestamp:
- Jan 11, 2010, 9:35:52 AM (16 years ago)
- Children:
- 49d3e1e
- Parents:
- 91b1e79
- Location:
- molecuilder/src
- Files:
-
- 5 edited
-
boundary.cpp (modified) (2 diffs)
-
boundary.hpp (modified) (1 diff)
-
builder.cpp (modified) (3 diffs)
-
tesselation.cpp (modified) (1 diff)
-
tesselation.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
r91b1e79 rafa056 795 795 * \return *mol pointer to new molecule with filled atoms 796 796 */ 797 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double epsilon, const doubleRandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation)797 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation) 798 798 { 799 799 Info FunctionInfo(__func__); … … 856 856 FillIt = false; 857 857 } else { 858 const bool FillResult = (!TesselStruct[i]->IsInnerPoint(CurrentPosition, LCList[i] , epsilon));858 const bool FillResult = (!TesselStruct[i]->IsInnerPoint(CurrentPosition, LCList[i])); 859 859 FillIt = FillIt && FillResult; 860 860 if (FillResult) { -
molecuilder/src/boundary.hpp
r91b1e79 rafa056 49 49 50 50 double ConvexizeNonconvexEnvelope(class Tesselation *&TesselStruct, const molecule * const mol, const char * const filename); 51 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double epsilon, const doubleRandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation);51 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation); 52 52 void FindConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *LCList, const char *filename); 53 53 Vector* FindEmbeddingHole(MoleculeListClass *mols, molecule *srcmol); -
molecuilder/src/builder.cpp
r91b1e79 rafa056 1417 1417 Log() << Verbose(0) << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl; 1418 1418 Log() << Verbose(0) << "\t-E <id> <Z>\tChange atom <id>'s element to <Z>, <id> begins at 0." << endl; 1419 Log() << Verbose(0) << "\t-f /F<dist> <order>\tFragments the molecule in BOSSANOVA manner (with/out rings compressed) and stores config files in same dir as config (return code 0 - fragmented, 2 - no fragmentation necessary)." << endl;1420 Log() << Verbose(0) << "\t-F \tFilling Box with water molecules." << endl;1419 Log() << Verbose(0) << "\t-f <dist> <order>\tFragments the molecule in BOSSANOVA manner (with/out rings compressed) and stores config files in same dir as config (return code 0 - fragmented, 2 - no fragmentation necessary)." << endl; 1420 Log() << Verbose(0) << "\t-F <dist_x> <dist_y> <dist_z> <epsilon> <randatom> <randmol> <DoRotate>\tFilling Box with water molecules." << endl; 1421 1421 Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl; 1422 1422 Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl; … … 1738 1738 if (argptr+6 >=argc) { 1739 1739 ExitFlag = 255; 1740 eLog() << Verbose(0) << "Not enough or invalid arguments given for filling box with water: -F <dist_x> <dist_y> <dist_z> < epsilon> <randatom> <randmol> <DoRotate>" << endl;1740 eLog() << Verbose(0) << "Not enough or invalid arguments given for filling box with water: -F <dist_x> <dist_y> <dist_z> <randatom> <randmol> <DoRotate>" << endl; 1741 1741 performCriticalExit(); 1742 1742 } else { … … 1769 1769 for (int i=0;i<NDIM;i++) 1770 1770 distance[i] = atof(argv[argptr+i]); 1771 Filling = FillBoxWithMolecule(molecules, filler, configuration, distance, atof(argv[argptr+3]), atof(argv[argptr+4]), ato f(argv[argptr+5]), atoi(argv[argptr+6]));1771 Filling = FillBoxWithMolecule(molecules, filler, configuration, distance, atof(argv[argptr+3]), atof(argv[argptr+4]), atoi(argv[argptr+5])); 1772 1772 if (Filling != NULL) { 1773 1773 Filling->ActiveFlag = false; -
molecuilder/src/tesselation.cpp
r91b1e79 rafa056 3247 3247 * @param point of which to check the position 3248 3248 * @param *LC LinkedCell structure 3249 * @param epsilon Distance of \a &Point to Center of triangle (of point outwards) is tested less against this value (standard: -MYEPSILON)3250 3249 * 3251 3250 * @return true if the point is inside the tesselation structure, false otherwise 3252 3251 */ 3253 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell* const LC , const double epsilon) const3252 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const 3254 3253 { 3255 3254 Info FunctionInfo(__func__); -
molecuilder/src/tesselation.hpp
r91b1e79 rafa056 312 312 list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(const Vector *x, const LinkedCell* LC) const; 313 313 class BoundaryTriangleSet * FindClosestTriangleToPoint(const Vector *x, const LinkedCell* LC) const; 314 bool IsInnerPoint(const Vector &Point, const LinkedCell* const LC , const double epsilon = -MYEPSILON) const;314 bool IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const; 315 315 bool AddBoundaryPoint(TesselPoint * Walker, const int n); 316 316 DistanceToPointMap * FindClosestBoundaryPointsToVector(const Vector *x, const LinkedCell* LC) const;
Note:
See TracChangeset
for help on using the changeset viewer.
