--- trunk/src/selection/HullFinder.cpp 2010/03/22 18:45:39 1412 +++ trunk/src/selection/HullFinder.cpp 2010/04/22 19:44:57 1439 @@ -81,16 +81,27 @@ namespace OpenMD { stuntdoubles_[rb->getGlobalIndex()] = rb; } - } - surfaceMesh_ = new ConvexHull(); + } +#ifdef HAVE_QHULL + surfaceMesh_ = new ConvexHull(); +#endif } OpenMDBitSet HullFinder::findHull() { StuntDouble* sd; Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); OpenMDBitSet bsResult(nStuntDoubles_); - +#ifdef HAVE_QHULL surfaceMesh_->computeHull(localSites_); +#else + sprintf( painCave.errMsg, + "Hullfinder error: Hull calculation not possible without libqhull.\n", + "Please rebuild with Qhull"); + painCave.severity = OPENMD_ERROR; + painCave.isFatal = 1; + simError(); +#endif + std::vector sMesh = surfaceMesh_->getMesh(); int nTriangles = sMesh.size(); // Loop over the mesh faces