https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Fix apps/statues/mesh-segm.
* apps/statues/mesh-segm.cc (main): Actually use a vector of
curv_t (int) instead of a vector of floats.
mesh-segm.cc | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Index: apps/statues/mesh-segm.cc
--- apps/statues/mesh-segm.cc (revision 2053)
+++ apps/statues/mesh-segm.cc (working copy)
@@ -25,6 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
+/// \file apps/statues/mesh-segm.cc
+/// \brief A program performing a WST-based segmentation of the
+/// surface of the (triangle) mesh of a statue.
+
+// FIXME: Factor commons parts between mesh-segm and mesh-skel.
+
#include <cstdlib>
#include <cmath>
@@ -82,10 +88,10 @@
// Computation of the mean curvature on each vertex of the mesh.
mesh.need_curvatures();
/* FIXME: Our implementation of the WST doesn't work well with
- floats. Convert floating point values to a proportional integer
- value for the moment. */
+ floats (yet). Convert floating point values to a proportional
+ integer value for the moment. */
typedef int curv_t;
- std::vector<float> vertex_h_inv(mesh.vertices.size(), 0.f);
+ std::vector<curv_t> vertex_h_inv(mesh.vertices.size(), 0.f);
for (unsigned v = 0; v < mesh.vertices.size(); ++v)
{
float h = (mesh.curv1[v] + mesh.curv2[v]) / 2;