
* mesh/Makefile.am (pinv_curv): New. * Makefile.am (SUBDIRS): Add mesh. --- milena/ChangeLog | 7 +++++ milena/Makefile.am | 2 +- milena/mesh/Makefile.am | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletions(-) create mode 100644 milena/mesh/Makefile.am diff --git a/milena/ChangeLog b/milena/ChangeLog index a6d0f1e..bcbe277 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2008-11-18 Roland Levillain <roland@lrde.epita.fr> + Generate meshes with curvature. + + * mesh/Makefile.am (pinv_curv): New. + * Makefile.am (SUBDIRS): Add mesh. + +2008-11-18 Roland Levillain <roland@lrde.epita.fr> + Remove previously computed meshes (with curvature). * mesh/bunny-holefilled-curv.off, diff --git a/milena/Makefile.am b/milena/Makefile.am index 97c91e3..609628b 100644 --- a/milena/Makefile.am +++ b/milena/Makefile.am @@ -1,6 +1,6 @@ ## Process this file through Automake to create Makefile.in -*- Makefile -*- -SUBDIRS = doc tests tools apps +SUBDIRS = mesh doc tests tools apps .PHONY: doc doc: diff --git a/milena/mesh/Makefile.am b/milena/mesh/Makefile.am new file mode 100644 index 0000000..b342a6a --- /dev/null +++ b/milena/mesh/Makefile.am @@ -0,0 +1,58 @@ +## Process this file through Automake to create Makefile.in -*- Makefile -*- + +## This Makefile makes use of GNU Make extensions (%-patterns, +## patsubst). We might want to turn it into something more portable +## when Olena is released. + +meshdir = $(pkgdatadir)/images +dist_mesh_DATA = + +## -------- ## +## Meshes. ## +## -------- ## + +meshes = \ + bunny-holefilled.off \ + cone.off \ + cube.off \ + socket.off \ + teapot.off \ + tetrahedron.off +dist_mesh_DATA += $(meshes) + +## ------------------------------------ ## +## Pseudo-inverse curvature of meshes. ## +## ------------------------------------ ## + +mesh_pinv_curv = $(top_builddir)/milena/apps/statues/mesh-pinv-curv +mesh_pinv_curv: $(top_srcdir)/milena/apps/statues/mesh-pinv-curv.cc + cd $(top_builddir)/milena/apps/statues/mesh-pinv-curv && \ + $(MAKE) $(AM_MAKEFLAGS) mesh_pinv_curv + +$(srcdir)/%-pinv-curv.off: %.off $(mesh_pinv_curv) + $(mesh_pinv_curv) $< $@ + +# pinv_curv = $(meshes:.off=-pinv-curv.off) +pinv_curv = $(patsubst %.off,$(srcdir)/%-pinv-curv.off,$(meshes)) +dist_mesh_DATA += $(pinv_curv) + +## ----------------------------- ## +## Maximum curvature of meshes. ## +## ----------------------------- ## + +mesh_max_curv = $(top_builddir)/milena/apps/statues/mesh-max-curv +mesh_max_curv: $(top_srcdir)/milena/apps/statues/mesh-max-curv.cc + cd $(top_builddir)/milena/apps/statues/mesh-max-curv && \ + $(MAKE) $(AM_MAKEFLAGS) mesh_max_curv + +$(srcdir)/%-max-curv.off: %.off $(mesh_max_curv) + $(mesh_max_curv) $< $@ + +#max_curv = $(meshes:.off=-max-curv.off) +max_curv = $(patsubst %.off,$(srcdir)/%-max-curv.off,$(meshes)) +dist_mesh_DATA += $(max_curv) + +.PHONY: debug +debug: + @echo $(pinv_curv) + @echo $(max_curv) -- 1.6.0.1