Commit 81588995 authored by Mike Kremer's avatar Mike Kremer
Browse files

Corrected barycenter functions.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@168 66977474-1d4b-4f09-8fe9-267525286df2
parent 363dd004
......@@ -120,8 +120,8 @@ public:
PointT barycenter(const FaceHandle& _fh) const {
PointT p;
typename PointT::Scalar valence = 0;
typename TopologyKernelT::HalfFaceVertexIter hfv_it =
typename PointT::value_type valence = 0;
HalfFaceVertexIter hfv_it =
TopologyKernelT::hfv_iter(TopologyKernelT::halfface_handle(_fh, 0));
for(; hfv_it.valid(); ++hfv_it, valence += 1) {
p += vertex(*hfv_it);
......@@ -132,9 +132,8 @@ public:
PointT barycenter(const CellHandle& _ch) const {
PointT p;
typename PointT::Scalar valence = 0;
typename TopologyKernelT::CellVertexIter cv_it =
TopologyKernelT::cv_iter(_ch);
typename PointT::value_type valence = 0;
CellVertexIter cv_it = TopologyKernelT::cv_iter(_ch);
for(; cv_it.valid(); ++cv_it, valence += 1) {
p += vertex(*cv_it);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment