libigl v2.5.0
Loading...
Searching...
No Matches
shape_diameter_function.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_EMBREE_SHAPE_DIAMETER_FUNCTION_H
9#define IGL_EMBREE_SHAPE_DIAMETER_FUNCTION_H
10#include "../igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
14 namespace embree
15 {
16 // Forward define
17 class EmbreeIntersector;
26 template <
27 typename DerivedP,
28 typename DerivedN,
29 typename DerivedS >
31 const EmbreeIntersector & ei,
32 const Eigen::PlainObjectBase<DerivedP> & P,
33 const Eigen::PlainObjectBase<DerivedN> & N,
34 const int num_samples,
35 Eigen::PlainObjectBase<DerivedS> & S);
41 template <
42 typename DerivedV,
43 typename DerivedF,
44 typename DerivedP,
45 typename DerivedN,
46 typename DerivedS >
48 const Eigen::PlainObjectBase<DerivedV> & V,
49 const Eigen::PlainObjectBase<DerivedF> & F,
50 const Eigen::PlainObjectBase<DerivedP> & P,
51 const Eigen::PlainObjectBase<DerivedN> & N,
52 const int num_samples,
53 Eigen::PlainObjectBase<DerivedS> & S);
54 }
55};
56#ifndef IGL_STATIC_LIBRARY
57# include "shape_diameter_function.cpp"
58#endif
59
60#endif
61
Simple class to wrap Embree's ray tracing functionality.
Definition EmbreeIntersector.h:36
#define IGL_INLINE
Definition igl_inline.h:15
void shape_diameter_function(const EmbreeIntersector &ei, const Eigen::PlainObjectBase< DerivedP > &P, const Eigen::PlainObjectBase< DerivedN > &N, const int num_samples, Eigen::PlainObjectBase< DerivedS > &S)
Compute shape diamter function per given point.
Definition AABB.h:17