writeDAE.h 1023 B

123456789101112131415161718192021222324252627282930313233343536
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 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_XML_WRITEDAE_H
  9. #define IGL_XML_WRITEDAE_H
  10. #ifndef IGL_STATIC_LIBRARY
  11. #include "../igl_inline.h"
  12. #include <string>
  13. #include <Eigen/Core>
  14. namespace igl
  15. {
  16. namespace xml
  17. {
  18. // Write a mesh to a Collada .dae scene file
  19. //
  20. // Inputs:
  21. // filename path to .dae file
  22. // V #V by 3 list of vertex positions
  23. // F #F by 3 list of face indices
  24. // Returns true iff success
  25. //
  26. template <typename DerivedV, typename DerivedF>
  27. IGL_INLINE bool writeDAE(
  28. const std::string & filename,
  29. const Eigen::PlainObjectBase<DerivedV> & V,
  30. const Eigen::PlainObjectBase<DerivedF> & F);
  31. }
  32. }
  33. #include "writeDAE.cpp"
  34. #endif
  35. #endif