writeBF.h 764 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_WRITEBF_H
  2. #define IGL_WRITEBF_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <string>
  6. namespace igl
  7. {
  8. // Write a bones forest to a file
  9. //
  10. // Input:
  11. // file_name path to .bf bones tree file
  12. // WI #B list of unique weight indices
  13. // P #B list of parent indices into B, -1 for roots
  14. // O #B list of tip offsets
  15. // Returns true on success, false on errors
  16. template <
  17. typename DerivedWI,
  18. typename DerivedP,
  19. typename DerivedO>
  20. IGL_INLINE bool writeBF(
  21. const std::string & filename,
  22. const Eigen::PlainObjectBase<DerivedWI> & WI,
  23. const Eigen::PlainObjectBase<DerivedP> & P,
  24. const Eigen::PlainObjectBase<DerivedO> & O);
  25. }
  26. #ifndef IGL_STATIC_LIBRARY
  27. # include "writeBF.cpp"
  28. #endif
  29. #endif