ARAPEnergyType.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_ARAPENERGYTYPE_H
  9. #define IGL_ARAPENERGYTYPE_H
  10. namespace igl
  11. {
  12. // ARAP_ENERGY_TYPE_SPOKES "As-rigid-as-possible Surface Modeling" by [Sorkine and
  13. // Alexa 2007], rotations defined at vertices affecting incident edges,
  14. // default
  15. // ARAP_ENERGY_TYPE_SPOKES-AND-RIMS Adapted version of "As-rigid-as-possible Surface
  16. // Modeling" by [Sorkine and Alexa 2007] presented in section 4.2 of or
  17. // "A simple geometric model for elastic deformation" by [Chao et al.
  18. // 2010], rotations defined at vertices affecting incident edges and
  19. // opposite edges
  20. // ARAP_ENERGY_TYPE_ELEMENTS "A local-global approach to mesh parameterization" by
  21. // [Liu et al. 2010] or "A simple geometric model for elastic
  22. // deformation" by [Chao et al. 2010], rotations defined at elements
  23. // (triangles or tets)
  24. // ARAP_ENERGY_TYPE_DEFAULT Choose one automatically: spokes and rims
  25. // for surfaces, elements for planar meshes and tets (not fully
  26. // supported)
  27. enum ARAPEnergyType
  28. {
  29. ARAP_ENERGY_TYPE_SPOKES = 0,
  30. ARAP_ENERGY_TYPE_SPOKES_AND_RIMS = 1,
  31. ARAP_ENERGY_TYPE_ELEMENTS = 2,
  32. ARAP_ENERGY_TYPE_DEFAULT = 3,
  33. NUM_ARAP_ENERGY_TYPES = 4
  34. };
  35. }
  36. #endif