PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::InterpolatedFunction2d Class Reference

#include <InterpolatedFunction.hpp>

Public Member Functions

 InterpolatedFunction2d ()
 
 InterpolatedFunction2d (const Eigen::MatrixXd &fun, const Eigen::MatrixXd &pts, const Eigen::MatrixXi &tris)
 
void init (const Eigen::MatrixXd &fun, const Eigen::MatrixXd &pts, const Eigen::MatrixXi &tris)
 
Eigen::MatrixXd interpolate (const Eigen::MatrixXd &pts) const
 

Private Attributes

igl::AABB< Eigen::MatrixXd, 2 > tree_
 
Eigen::MatrixXd fun_
 
Eigen::MatrixXd pts_
 
Eigen::MatrixXi tris_
 

Detailed Description

Definition at line 11 of file InterpolatedFunction.hpp.

Constructor & Destructor Documentation

◆ InterpolatedFunction2d() [1/2]

polyfem::utils::InterpolatedFunction2d::InterpolatedFunction2d ( )
inline

Definition at line 14 of file InterpolatedFunction.hpp.

◆ InterpolatedFunction2d() [2/2]

polyfem::utils::InterpolatedFunction2d::InterpolatedFunction2d ( const Eigen::MatrixXd &  fun,
const Eigen::MatrixXd &  pts,
const Eigen::MatrixXi &  tris 
)

Definition at line 12 of file InterpolatedFunction.cpp.

References init().

Here is the call graph for this function:

Member Function Documentation

◆ init()

void polyfem::utils::InterpolatedFunction2d::init ( const Eigen::MatrixXd &  fun,
const Eigen::MatrixXd &  pts,
const Eigen::MatrixXi &  tris 
)

Definition at line 17 of file InterpolatedFunction.cpp.

References fun_, pts_, tree_, and tris_.

Referenced by polyfem::problem::PointBasedTensorProblem::BCValue::init(), and InterpolatedFunction2d().

Here is the caller graph for this function:

◆ interpolate()

Eigen::MatrixXd polyfem::utils::InterpolatedFunction2d::interpolate ( const Eigen::MatrixXd &  pts) const

Definition at line 30 of file InterpolatedFunction.cpp.

References fun_, pts_, tree_, and tris_.

Member Data Documentation

◆ fun_

Eigen::MatrixXd polyfem::utils::InterpolatedFunction2d::fun_
private

Definition at line 22 of file InterpolatedFunction.hpp.

Referenced by init(), and interpolate().

◆ pts_

Eigen::MatrixXd polyfem::utils::InterpolatedFunction2d::pts_
private

Definition at line 23 of file InterpolatedFunction.hpp.

Referenced by init(), and interpolate().

◆ tree_

igl::AABB<Eigen::MatrixXd, 2> polyfem::utils::InterpolatedFunction2d::tree_
private

Definition at line 21 of file InterpolatedFunction.hpp.

Referenced by init(), and interpolate().

◆ tris_

Eigen::MatrixXi polyfem::utils::InterpolatedFunction2d::tris_
private

Definition at line 24 of file InterpolatedFunction.hpp.

Referenced by init(), and interpolate().


The documentation for this class was generated from the following files: