--- branches/development/src/math/ConvexHull.cpp 2012/04/24 20:40:04 1704 +++ branches/development/src/math/ConvexHull.cpp 2012/11/16 21:18:42 1812 @@ -87,6 +87,7 @@ void ConvexHull::computeHull(std::vector // Copy the positon vector into a points vector for qhull. std::vector::iterator SD; int i = 0; + for (SD =bodydoubles.begin(); SD != bodydoubles.end(); ++SD){ Vector3d pos = (*SD)->getPos(); ptArray[dim_ * i] = pos.x(); @@ -204,6 +205,7 @@ void ConvexHull::computeHull(std::vector } //qh_new_qhull #endif + intPoint = qh interior_point; RealType calcvol = 0.0; FORALLfacets {