Changeset 899029f for molecuilder


Ignore:
Timestamp:
Apr 2, 2009, 4:42:53 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
378e87, 8b05c6, d2639f
Parents:
3021d93
Message:

Framework for embedding one molecule into another, now the embedding center finding is "only" missing

Location:
molecuilder/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/boundary.cpp

    r3021d93 r899029f  
    27982798};
    27992799
     2800/** Finds a hole of sufficient size in \a this molecule to embed \a *srcmol into it.
     2801 * \param *out output stream for debugging
     2802 * \param *srcmol molecule to embed into
     2803 * \return *Vector new center of \a *srcmol for embedding relative to \a this
     2804 */
     2805Vector* molecule::FindEmbeddingHole(ofstream *out, molecule *srcmol)
     2806{
     2807  Vector *Center = new Vector;
     2808  Center->Zero();
     2809  // calculate volume/shape of \a *srcmol
     2810
     2811  // find embedding holes
     2812
     2813  // if more than one, let user choose
     2814
     2815  // return embedding center
     2816  return Center;
     2817};
     2818
  • molecuilder/src/moleculelist.cpp

    r3021d93 r899029f  
    298298
    299299  // calculate center for merge
    300   //srcmol->Center.Zero();
     300  srcmol->Center.CopyVector(mol->FindEmbeddingHole((ofstream *)&cout, srcmol));
     301  srcmol->Center.Zero();
    301302
    302303  // perform simple merge
  • molecuilder/src/molecules.hpp

    r3021d93 r899029f  
    266266        void PrincipalAxisSystem(ofstream *out, bool DoRotate);
    267267        double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem);
     268        Vector* FindEmbeddingHole(ofstream *out, molecule *srcmol);
     269
    268270        bool VerletForceIntegration(char *file, double delta_t, bool IsAngstroem);
    269271
Note: See TracChangeset for help on using the changeset viewer.