Changeset afa056 for molecuilder/src


Ignore:
Timestamp:
Jan 11, 2010, 9:35:52 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
49d3e1e
Parents:
91b1e79
Message:

Removed unnecessary epsilon parameter.

  • epsilon before was used as a threshold parameter but is not needed anymore.
  • removed as parameter in case 'F' in builder.cpp
  • removed from Tesselation::IsInnerPoint()
  • removed from FillBoxWithMolecul() in boundary.?pp
Location:
molecuilder/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/boundary.cpp

    r91b1e79 rafa056  
    795795 * \return *mol pointer to new molecule with filled atoms
    796796 */
    797 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double epsilon, const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation)
     797molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation)
    798798{
    799799        Info FunctionInfo(__func__);
     
    856856            FillIt = false;
    857857          } else {
    858             const bool FillResult = (!TesselStruct[i]->IsInnerPoint(CurrentPosition, LCList[i], epsilon));
     858            const bool FillResult = (!TesselStruct[i]->IsInnerPoint(CurrentPosition, LCList[i]));
    859859            FillIt = FillIt && FillResult;
    860860            if (FillResult) {
  • molecuilder/src/boundary.hpp

    r91b1e79 rafa056  
    4949
    5050double 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 double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation);
     51molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation);
    5252void FindConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *LCList, const char *filename);
    5353Vector* FindEmbeddingHole(MoleculeListClass *mols, molecule *srcmol);
  • molecuilder/src/builder.cpp

    r91b1e79 rafa056  
    14171417            Log() << Verbose(0) << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl;
    14181418            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;
    14211421            Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl;
    14221422            Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl;
     
    17381738              if (argptr+6 >=argc) {
    17391739                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;
    17411741                performCriticalExit();
    17421742              } else {
     
    17691769                for (int i=0;i<NDIM;i++)
    17701770                  distance[i] = atof(argv[argptr+i]);
    1771                 Filling = FillBoxWithMolecule(molecules, filler, configuration, distance, atof(argv[argptr+3]), atof(argv[argptr+4]), atof(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]));
    17721772                if (Filling != NULL) {
    17731773                  Filling->ActiveFlag = false;
  • molecuilder/src/tesselation.cpp

    r91b1e79 rafa056  
    32473247 * @param point of which to check the position
    32483248 * @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)
    32503249 *
    32513250 * @return true if the point is inside the tesselation structure, false otherwise
    32523251 */
    3253 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell* const LC, const double epsilon) const
     3252bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const
    32543253{
    32553254  Info FunctionInfo(__func__);
  • molecuilder/src/tesselation.hpp

    r91b1e79 rafa056  
    312312    list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(const Vector *x, const LinkedCell* LC) const;
    313313    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;
    315315    bool AddBoundaryPoint(TesselPoint * Walker, const int n);
    316316    DistanceToPointMap * FindClosestBoundaryPointsToVector(const Vector *x, const LinkedCell* LC) const;
Note: See TracChangeset for help on using the changeset viewer.