Changeset 899029f for molecuilder
- Timestamp:
- Apr 2, 2009, 4:42:53 PM (16 years ago)
- Children:
- 378e87, 8b05c6, d2639f
- Parents:
- 3021d93
- Location:
- molecuilder/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
r3021d93 r899029f 2798 2798 }; 2799 2799 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 */ 2805 Vector* 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 298 298 299 299 // calculate center for merge 300 //srcmol->Center.Zero(); 300 srcmol->Center.CopyVector(mol->FindEmbeddingHole((ofstream *)&cout, srcmol)); 301 srcmol->Center.Zero(); 301 302 302 303 // perform simple merge -
molecuilder/src/molecules.hpp
r3021d93 r899029f 266 266 void PrincipalAxisSystem(ofstream *out, bool DoRotate); 267 267 double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem); 268 Vector* FindEmbeddingHole(ofstream *out, molecule *srcmol); 269 268 270 bool VerletForceIntegration(char *file, double delta_t, bool IsAngstroem); 269 271
Note:
See TracChangeset
for help on using the changeset viewer.