libigl v2.5.0
Loading...
Searching...
No Matches
blue_noise.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) 2020 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_BLUE_NOISE_H
9#define IGL_BLUE_NOISE_H
10#include "igl_inline.h"
12#include <Eigen/Core>
13namespace igl
14{
31 template <
32 typename DerivedV,
33 typename DerivedF,
34 typename DerivedB,
35 typename DerivedFI,
36 typename DerivedP,
37 typename URBG = DEFAULT_URBG
38 >
40 const Eigen::MatrixBase<DerivedV> & V,
41 const Eigen::MatrixBase<DerivedF> & F,
42 const typename DerivedV::Scalar r,
43 Eigen::PlainObjectBase<DerivedB> & B,
44 Eigen::PlainObjectBase<DerivedFI> & FI,
45 Eigen::PlainObjectBase<DerivedP> & P,
46 URBG && urbg = igl::generate_default_urbg());
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "blue_noise.cpp"
51#endif
52
53#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
DEFAULT_URBG generate_default_urbg()
Definition generate_default_urbg.h:7
std::mt19937 DEFAULT_URBG
Definition generate_default_urbg.h:6
void blue_noise(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const typename DerivedV::Scalar r, Eigen::PlainObjectBase< DerivedB > &B, Eigen::PlainObjectBase< DerivedFI > &FI, Eigen::PlainObjectBase< DerivedP > &P, URBG &&urbg=igl::generate_default_urbg())
"Fast Poisson Disk Sampling in Arbitrary Dimensions" [Bridson 2007].