bounding_box_diagonal.h 566 B

1234567891011121314151617181920212223
  1. #ifndef IGL_BOUNDING_BOX_DIAGONAL_H
  2. #define IGL_BOUNDING_BOX_DIAGONAL_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // Compute the length of the diagonal of a given meshes axis-aligned bounding
  8. // box
  9. //
  10. // Inputs:
  11. // V #V by 3 list of vertex positions
  12. // F #F by 3 list of triangle indices into V
  13. // Returns length of bounding box diagonal
  14. IGL_INLINE double bounding_box_diagonal(
  15. const Eigen::MatrixXd & V,
  16. const Eigen::MatrixXi & F);
  17. }
  18. #ifdef IGL_HEADER_ONLY
  19. # include "bounding_box_diagonal.cpp"
  20. #endif
  21. #endif