writeDAE.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 Alec Jacobson <[email protected]>
  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. #include "../igl_inline.h"
  11. #include <string>
  12. #include <Eigen/Core>
  13. namespace igl
  14. {
  15. namespace xml
  16. {
  17. /// Write a mesh to a Collada .dae scene file. The resulting scene contains
  18. /// a single "geometry" suitable for solid operaions (boolean union,
  19. /// intersection, etc.) in SketchUp.
  20. ///
  21. /// @param[in] filename path to .dae file
  22. /// @param[in] V #V by 3 list of vertex positions
  23. /// @param[in] F #F by 3 list of face indices
  24. /// @return true iff success
  25. ///
  26. template <typename DerivedV, typename DerivedF>
  27. IGL_INLINE bool writeDAE(
  28. const std::string & filename,
  29. const Eigen::MatrixBase<DerivedV> & V,
  30. const Eigen::MatrixBase<DerivedF> & F);
  31. }
  32. }
  33. #ifndef IGL_STATIC_LIBRARY
  34. #include "writeDAE.cpp"
  35. #endif
  36. #endif