- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/TesselationAction/ConvexEnvelopeAction.cpp
r112b09 rf6bd32 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp"9 7 10 8 #include "Actions/TesselationAction/ConvexEnvelopeAction.hpp" … … 21 19 #include "atom.hpp" 22 20 #include "boundary.hpp" 21 #include "config.hpp" 23 22 #include "linkedcell.hpp" 24 23 #include "log.hpp" … … 56 55 molecule * mol = NULL; 57 56 bool Success = false; 57 config *configuration = World::getInstance().getConfig(); 58 58 59 59 dialog->queryMolecule(NAME, &mol, MapOfActions::getInstance().getDescription(NAME)); 60 dialog->queryString(" output", &filenameConvex, MapOfActions::getInstance().getDescription("output"));61 dialog->queryString(" output", &filenameNonConvex, MapOfActions::getInstance().getDescription("output"));60 dialog->queryString("convex-file", &filenameConvex, MapOfActions::getInstance().getDescription("convex-file")); 61 dialog->queryString("nonconvex-file", &filenameNonConvex, MapOfActions::getInstance().getDescription("nonconvex-file")); 62 62 63 63 if(dialog->display()) { … … 72 72 FindNonConvexBorder(mol, TesselStruct, LCList, 50., filenameNonConvex.c_str()); 73 73 //RemoveAllBoundaryPoints(TesselStruct, mol, argv[argptr]); 74 ConvexizeNonconvexEnvelope(TesselStruct, mol, filenameConvex.c_str()); 74 const double volumedifference = ConvexizeNonconvexEnvelope(TesselStruct, mol, filenameConvex.c_str()); 75 const double clustervolume = VolumeOfConvexEnvelope(TesselStruct, configuration); 76 DoLog(0) && (Log() << Verbose(0) << "The tesselated volume area is " << clustervolume << " " << (configuration->GetIsAngstroem() ? "angstrom" : "atomiclength") << "^3." << endl); 77 DoLog(0) && (Log() << Verbose(0) << "The non-convex tesselated volume area is " << clustervolume-volumedifference << " " << (configuration->GetIsAngstroem() ? "angstrom" : "atomiclength") << "^3." << endl); 75 78 delete(TesselStruct); 76 79 delete(LCList);
Note:
See TracChangeset
for help on using the changeset viewer.