2902: Rename apps/statues/mesh-curv as apps/statues/mesh-pinv-curv.

* apps/statues/mesh-curv.cc: Rename as... * apps/statues/mesh-pinv-curv.cc: ...this. Adjust. * apps/statues/Makefile.am: Adjust. --- milena/ChangeLog | 9 +++++++++ milena/apps/statues/Makefile.am | 4 ++-- .../statues/{mesh-curv.cc => mesh-pinv-curv.cc} | 7 ++++--- 3 files changed, 15 insertions(+), 5 deletions(-) rename milena/apps/statues/{mesh-curv.cc => mesh-pinv-curv.cc} (95%) diff --git a/milena/ChangeLog b/milena/ChangeLog index 59065a6..7de2bd7 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,14 @@ 2008-11-18 Roland Levillain <roland@lrde.epita.fr> + Rename apps/statues/mesh-curv as apps/statues/mesh-pinv-curv. + + * apps/statues/mesh-curv.cc: Rename as... + * apps/statues/mesh-pinv-curv.cc: ...this. + Adjust. + * apps/statues/Makefile.am: Adjust. + +2008-11-18 Roland Levillain <roland@lrde.epita.fr> + Fix and clean up apps/statues/mesh-curv. * apps/statues/mesh-curv.cc (main): Fix the formula used to diff --git a/milena/apps/statues/Makefile.am b/milena/apps/statues/Makefile.am index 9b07a62..9a5c9a1 100644 --- a/milena/apps/statues/Makefile.am +++ b/milena/apps/statues/Makefile.am @@ -14,9 +14,9 @@ AM_LDFLAGS = $(GLFLAGS) LDADD = -L$(top_builddir)/external/trimesh/libsrc -ltrimesh $(GLLIBS) -bin_PROGRAMS = mesh-curv mesh-segm mesh-skel +bin_PROGRAMS = mesh-pinv-curv mesh-segm mesh-skel -mesh_curv_SOURCES = mesh-curv.cc io.hh +mesh_pinv_curv_SOURCES = mesh-pinv-curv.cc io.hh mesh_segm_SOURCES = mesh-segm.cc io.hh mesh_skel_SOURCES = mesh-skel.cc io.hh diff --git a/milena/apps/statues/mesh-curv.cc b/milena/apps/statues/mesh-pinv-curv.cc similarity index 95% rename from milena/apps/statues/mesh-curv.cc rename to milena/apps/statues/mesh-pinv-curv.cc index b9915b7..8f38c57 100644 --- a/milena/apps/statues/mesh-curv.cc +++ b/milena/apps/statues/mesh-pinv-curv.cc @@ -25,9 +25,9 @@ // reasons why the executable file might be covered by the GNU General // Public License. -/// \file apps/statues/mesh-curv.cc -/// \brief A program computing the mean curvature at each (2-)face of -/// a mesh. +/// \file apps/statues/mesh-pinv-curv.cc +/// \brief A program computing the pseudo-inverse curvature at each +/// (2-)face of a mesh. #include <cstdlib> #include <cmath> @@ -75,6 +75,7 @@ int main(int argc, char* argv[]) for (unsigned v = 0; v < mesh.vertices.size(); ++v) { float h = (mesh.curv1[v] + mesh.curv2[v]) / 2; + // Pseudo-inverse curvature. float h_inv = 1 / pi * (atan(-h) + pi / 2); vertex_h_inv[v] = h_inv; } -- 1.6.0.1
participants (1)
-
Roland Levillain