libigl v2.5.0
Loading...
Searching...
No Matches
winding_number.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) 2015 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_WINDING_NUMBER_H
9#define IGL_WINDING_NUMBER_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12
13// Minimum number of iterms per openmp thread
14#ifndef IGL_WINDING_NUMBER_OMP_MIN_VALUE
15# define IGL_WINDING_NUMBER_OMP_MIN_VALUE 1000
16#endif
17namespace igl
18{
36 template <
37 typename DerivedV,
38 typename DerivedF,
39 typename DerivedO,
40 typename DerivedW>
42 const Eigen::MatrixBase<DerivedV> & V,
43 const Eigen::MatrixBase<DerivedF> & F,
44 const Eigen::MatrixBase<DerivedO> & O,
45 Eigen::PlainObjectBase<DerivedW> & W);
53 template <
54 typename DerivedV,
55 typename DerivedF,
56 typename Derivedp>
57 IGL_INLINE typename DerivedV::Scalar winding_number(
58 const Eigen::MatrixBase<DerivedV> & V,
59 const Eigen::MatrixBase<DerivedF> & F,
60 const Eigen::MatrixBase<Derivedp> & p);
61}
62
63#ifndef IGL_STATIC_LIBRARY
64# include "winding_number.cpp"
65#endif
66
67#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void winding_number(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedO > &O, Eigen::PlainObjectBase< DerivedW > &W)
Computes the generalized winding number at each dim-dimensional query point in O with respect to the ...