123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef IGL_AMBIENT_OCCLUSION_H
- #define IGL_AMBIENT_OCCLUSION_H
- #include <igl/igl_inline.h>
- #include <Eigen/Core>
- namespace igl
- {
- // Forward define
- template <
- typename PointMatrixType,
- typename FaceMatrixType,
- typename RowVector3>
- class EmbreeIntersector;
- // Compute ambient occlusion per given point
- //
- // Inputs:
- // ei EmbreeIntersector containing (V,F)
- // P #P by 3 list of origin points
- // N #P by 3 list of origin normals
- // Outputs:
- // S #P list of ambient occlusion values between 1 (fully occluded) and 0
- // (not occluded)
- //
- template <
- typename PointMatrixType,
- typename FaceMatrixType,
- typename RowVector3,
- typename DerivedP,
- typename DerivedN,
- typename DerivedS >
- void ambient_occlusion(
- const igl::EmbreeIntersector<PointMatrixType,FaceMatrixType,RowVector3> & ei,
- const Eigen::PlainObjectBase<DerivedP> & P,
- const Eigen::PlainObjectBase<DerivedN> & N,
- const int num_samples,
- Eigen::PlainObjectBase<DerivedS> & S);
- };
- #endif
|