summaryrefslogtreecommitdiff
path: root/src/Coxeter_triangulation/concept/FunctionForImplicitManifold.h
blob: 2339817eda0708b4f820ea453090b721c59f55f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*    This file is part of the Gudhi Library. The Gudhi library
 *    (Geometric Understanding in Higher Dimensions) is a generic C++
 *    library for computational topology.
 *
 *    Author(s):       Siargey Kachanovich
 *
 *    Copyright (C) 2019 Inria
 *
 *    Modification(s):
 *      - YYYY/MM Author: Description of the modification
 */

#ifndef CONCEPT_COXETER_TRIANGULATION_FUNCTION_FOR_IMPLICIT_MANIFOLD_H_
#define CONCEPT_COXETER_TRIANGULATION_FUNCTION_FOR_IMPLICIT_MANIFOLD_H_

namespace Gudhi {

namespace coxeter_triangulation {

/** \brief The concept FunctionForImplicitManifold describes the requirements 
 * for a type to implement an implicit function class used for example in Manifold_tracing.
 */
struct FunctionForImplicitManifold {

  /** \brief Value of the function at a specified point 'p'. 
   *  @param[in] p The input point given by its Cartesian coordinates.
   *  Its size needs to be equal to amb_d().
   */
  Eigen::VectorXd operator()(const Eigen::VectorXd& p) const;

  /** \brief Returns the domain (ambient) dimension. */
  std::size_t amb_d() const;
  
  /** \brief Returns the codomain dimension. */
  std::size_t cod_d() const;

  /** \brief Returns a point on the zero-set of the function. */
  Eigen::VectorXd seed() const;
};

}  // namespace coxeter_triangulation

}  // namespace Gudhi


#endif