libigl v2.5.0
Loading...
Searching...
No Matches
box_surface_area.h
Go to the documentation of this file.
1#ifndef IGL_BOX_SURFACE_AREA_H
2#define IGL_BOX_SURFACE_AREA_H
3#include "igl_inline.h"
4#include <Eigen/Core>
5#include <Eigen/Geometry>
6
7namespace igl
8{
14 template <typename DerivedCorner>
15 IGL_INLINE typename DerivedCorner::Scalar box_surface_area(
16 const Eigen::MatrixBase<DerivedCorner> & min_corner,
17 const Eigen::MatrixBase<DerivedCorner> & max_corner);
20 template <typename Scalar, int AmbientDim>
22 const Eigen::AlignedBox<Scalar,AmbientDim> & box);
23}
24
25#ifndef IGL_STATIC_LIBRARY
26# include "box_surface_area.cpp"
27#endif
28
29#endif
30
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
DerivedCorner::Scalar box_surface_area(const Eigen::MatrixBase< DerivedCorner > &min_corner, const Eigen::MatrixBase< DerivedCorner > &max_corner)
Compute the surface area of a box given its min and max corners.