--- branches/development/src/selection/HullFinder.cpp 2013/02/20 15:39:39 1850 +++ branches/development/src/selection/HullFinder.cpp 2013/05/15 15:09:35 1874 @@ -88,8 +88,11 @@ namespace OpenMD { #endif } + HullFinder::~HullFinder() { + delete surfaceMesh_; + } + OpenMDBitSet HullFinder::findHull() { - Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); OpenMDBitSet bsResult(nStuntDoubles_); #ifdef HAVE_QHULL surfaceMesh_->computeHull(localSites_); @@ -97,13 +100,12 @@ namespace OpenMD { sprintf( painCave.errMsg, "HullFinder : Hull calculation is not possible without libqhull.\n" "\tPlease rebuild OpenMD with qhull enabled."); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); + painCave.severity = OPENMD_ERROR; + painCave.isFatal = 1; + simError(); #endif std::vector sMesh = surfaceMesh_->getMesh(); - int nTriangles = sMesh.size(); // Loop over the mesh faces std::vector::iterator face; std::vector::iterator vertex; @@ -124,7 +126,6 @@ namespace OpenMD { } OpenMDBitSet HullFinder::findHull(int frame) { - Snapshot* currSnapshot = info_->getSnapshotManager()->getSnapshot(frame); OpenMDBitSet bsResult(nStuntDoubles_); #ifdef HAVE_QHULL surfaceMesh_->computeHull(localSites_); @@ -138,7 +139,6 @@ namespace OpenMD { #endif std::vector sMesh = surfaceMesh_->getMesh(); - int nTriangles = sMesh.size(); // Loop over the mesh faces std::vector::iterator face; std::vector::iterator vertex;