libigl v2.5.0
Loading...
Searching...
No Matches
random_points_on_mesh_intrinsic.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_INTRINSIC_H
9#define IGL_RANDOM_POINTS_ON_MESH_INTRINSIC_H
10
11#include "igl_inline.h"
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16namespace igl
17{
26 template <
27 typename DeriveddblA,
28 typename DerivedB,
29 typename DerivedFI,
30 typename URBG = DEFAULT_URBG>
32 const int n,
33 const Eigen::MatrixBase<DeriveddblA > & dblA,
34 Eigen::PlainObjectBase<DerivedB > & B,
35 Eigen::PlainObjectBase<DerivedFI > & FI,
36 URBG && urbg = igl::generate_default_urbg());
44 template <
45 typename DeriveddblA,
46 typename DerivedF,
47 typename ScalarB,
48 typename DerivedFI,
49 typename URBG>
51 const int n,
52 const Eigen::MatrixBase<DeriveddblA > & dblA,
53 const int num_vertices,
54 const Eigen::MatrixBase<DerivedF> & F,
55 Eigen::SparseMatrix<ScalarB > & B,
56 Eigen::PlainObjectBase<DerivedFI > & FI,
57 URBG && urbg);
58}
59
60#ifndef IGL_STATIC_LIBRARY
61# include "random_points_on_mesh_intrinsic.cpp"
62#endif
63
64#endif
65
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void random_points_on_mesh_intrinsic(const int n, const Eigen::MatrixBase< DeriveddblA > &dblA, Eigen::PlainObjectBase< DerivedB > &B, Eigen::PlainObjectBase< DerivedFI > &FI, 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