writeWRL.h 593 B

123456789101112131415161718192021222324
  1. #ifndef IGL_WRITE_WRL_H
  2. #define IGL_WRITE_WRL_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <string>
  6. namespace igl
  7. {
  8. // Write mesh to a .wrl file
  9. //
  10. // Inputs:
  11. // str path to .wrl file
  12. // V #V by 3 list of vertex positions
  13. // F #F by 3 list of triangle indices
  14. // Returns true iff succes
  15. template <typename DerivedV, typename DerivedF>
  16. IGL_INLINE bool writeWRL(
  17. const std::string & str,
  18. const Eigen::PlainObjectBase<DerivedV> & V,
  19. const Eigen::PlainObjectBase<DerivedF> & F);
  20. }
  21. #ifndef IGL_STATIC_LIBRARY
  22. #include "writeWRL.cpp"
  23. #endif
  24. #endif