pad_box.h 453 B

1234567891011121314151617181920212223
  1. #ifndef IGL_PAD_BOX_H
  2. #define IGL_PAD_BOX_H
  3. #include <Eigen/Geometry>
  4. #include "igl_inline.h"
  5. namespace igl
  6. {
  7. /// Pads a box by a given amount
  8. ///
  9. /// @param[in] pad: amount to pad each side of the box
  10. /// @param[in,out] box box to be padded.
  11. template <typename Scalar, int DIM>
  12. IGL_INLINE void pad_box(
  13. const Scalar pad,
  14. Eigen::AlignedBox<Scalar,DIM> & box);
  15. }
  16. #ifndef IGL_STATIC_LIBRARY
  17. # include "pad_box.cpp"
  18. #endif
  19. #endif