1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef IGL_SHAPE_DIAMETER_FUNCTION_H
- #define IGL_SHAPE_DIAMETER_FUNCTION_H
- #include "igl_inline.h"
- #include "AABB.h"
- #include <Eigen/Core>
- #include <functional>
- namespace igl
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- template <
- typename DerivedP,
- typename DerivedN,
- typename DerivedS >
- IGL_INLINE void shape_diameter_function(
- const std::function<
- double(
- const Eigen::Vector3f&,
- const Eigen::Vector3f&)
- > & shoot_ray,
- const Eigen::PlainObjectBase<DerivedP> & P,
- const Eigen::PlainObjectBase<DerivedN> & N,
- const int num_samples,
- Eigen::PlainObjectBase<DerivedS> & S);
-
-
- template <
- typename DerivedV,
- int DIM,
- typename DerivedF,
- typename DerivedP,
- typename DerivedN,
- typename DerivedS >
- IGL_INLINE void shape_diameter_function(
- const igl::AABB<DerivedV,DIM> & aabb,
- const Eigen::PlainObjectBase<DerivedV> & V,
- const Eigen::PlainObjectBase<DerivedF> & F,
- const Eigen::PlainObjectBase<DerivedP> & P,
- const Eigen::PlainObjectBase<DerivedN> & N,
- const int num_samples,
- Eigen::PlainObjectBase<DerivedS> & S);
-
-
-
- template <
- typename DerivedV,
- typename DerivedF,
- typename DerivedP,
- typename DerivedN,
- typename DerivedS >
- IGL_INLINE void shape_diameter_function(
- const Eigen::PlainObjectBase<DerivedV> & V,
- const Eigen::PlainObjectBase<DerivedF> & F,
- const Eigen::PlainObjectBase<DerivedP> & P,
- const Eigen::PlainObjectBase<DerivedN> & N,
- const int num_samples,
- Eigen::PlainObjectBase<DerivedS> & S);
-
-
- template <
- typename DerivedV,
- typename DerivedF,
- typename DerivedS>
- IGL_INLINE void shape_diameter_function(
- const Eigen::PlainObjectBase<DerivedV> & V,
- const Eigen::PlainObjectBase<DerivedF> & F,
- const bool per_face,
- const int num_samples,
- Eigen::PlainObjectBase<DerivedS> & S);
- };
- #ifndef IGL_STATIC_LIBRARY
- # include "shape_diameter_function.cpp"
- #endif
- #endif
|