libigl v2.5.0
Loading...
Searching...
No Matches
random_points_on_mesh.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_RANDOM_POINTS_ON_MESH_H
9#define IGL_RANDOM_POINTS_ON_MESH_H
10
11#include "igl_inline.h"
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16namespace igl
17{
30 template <
31 typename DerivedV,
32 typename DerivedF,
33 typename DerivedB,
34 typename DerivedFI,
35 typename DerivedX,
36 typename URBG = DEFAULT_URBG>
38 const int n,
39 const Eigen::MatrixBase<DerivedV > & V,
40 const Eigen::MatrixBase<DerivedF > & F,
41 Eigen::PlainObjectBase<DerivedB > & B,
42 Eigen::PlainObjectBase<DerivedFI > & FI,
43 Eigen::PlainObjectBase<DerivedX> & X,
44 URBG && urbg = igl::generate_default_urbg());
45}
46
47#ifndef IGL_STATIC_LIBRARY
48# include "random_points_on_mesh.cpp"
49#endif
50
51#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void random_points_on_mesh(const int n, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedB > &B, Eigen::PlainObjectBase< DerivedFI > &FI, Eigen::PlainObjectBase< DerivedX > &X, URBG &&urbg=igl::generate_default_urbg())
Randomly sample a mesh (V,F) n times.
DEFAULT_URBG generate_default_urbg()
Definition generate_default_urbg.h:7
std::mt19937 DEFAULT_URBG
Definition generate_default_urbg.h:6