bounding_box_diagonal.h 531 B

123456789101112131415161718192021
  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( const Eigen::MatrixXd & V);
  15. }
  16. #ifdef IGL_HEADER_ONLY
  17. # include "bounding_box_diagonal.cpp"
  18. #endif
  19. #endif