PolyFEM
|
#include <CubicHermiteSplineParametrization.hpp>
Public Member Functions | |
CubicHermiteSplineParametrization (const std::map< int, Eigen::MatrixXd > &control_point, const std::map< int, Eigen::MatrixXd > &tangent, const std::map< int, std::vector< int > > &boundary_id_to_node_id, const Eigen::MatrixXd &V, const int sampling) | |
void | reparametrize (const std::map< int, Eigen::MatrixXd > &control_point, const std::map< int, Eigen::MatrixXd > &tangent, const Eigen::MatrixXd &V, Eigen::MatrixXd &newV) const |
void | get_parameters (const Eigen::MatrixXd &V, std::map< int, Eigen::MatrixXd > &control_point, std::map< int, Eigen::MatrixXd > &tangent) const |
void | derivative_wrt_params (const Eigen::VectorXd &grad_boundary, const int boundary_id, const int couple_tangents, Eigen::VectorXd &grad_control_point, Eigen::VectorXd &grad_tangent) const |
Static Public Member Functions | |
static void | find_nearest_spline (const Eigen::MatrixXd &point, const Eigen::MatrixXd &control_point, const Eigen::MatrixXd &tangent, int &nearest, double &t_optimal, double &distance, double &distance_to_start, double &distance_to_end, const double tol=1e-4) |
static void | gradient (const Eigen::MatrixXd &point, const Eigen::MatrixXd &control_point, const Eigen::MatrixXd &tangent, const int spline, const double t_parameter, const double distance, Eigen::MatrixXd &grad) |
static void | eval (const Eigen::MatrixXd &control_point, const Eigen::MatrixXd &tangent, const double t, Eigen::MatrixXd &val) |
static void | deriv (const Eigen::MatrixXd &control_point, const Eigen::MatrixXd &tangent, const double t, Eigen::MatrixXd &val) |
static void | second_deriv (const Eigen::MatrixXd &control_point, const Eigen::MatrixXd &tangent, const double t, Eigen::MatrixXd &val) |
Private Attributes | |
std::map< int, std::vector< int > > | boundary_id_to_node_id_ |
std::map< int, double > | node_id_to_t_ |
std::map< int, int > | node_id_to_spline_ |
int | dim = 2 |
std::map< int, int > | boundary_id_to_spline_count_ |
Definition at line 13 of file CubicHermiteSplineParametrization.hpp.
|
inline |
Definition at line 16 of file CubicHermiteSplineParametrization.hpp.
References boundary_id_to_node_id_, boundary_id_to_spline_count_, dim, find_nearest_spline(), polyfem::logger(), node_id_to_spline_, node_id_to_t_, and V.
|
inlinestatic |
Definition at line 257 of file CubicHermiteSplineParametrization.hpp.
References val.
Referenced by find_nearest_spline().
|
inline |
Definition at line 113 of file CubicHermiteSplineParametrization.hpp.
References boundary_id_to_node_id_, boundary_id_to_spline_count_, dim, node_id_to_spline_, and node_id_to_t_.
|
inlinestatic |
Definition at line 247 of file CubicHermiteSplineParametrization.hpp.
References val.
Referenced by find_nearest_spline(), gradient(), and reparametrize().
|
inlinestatic |
Definition at line 153 of file CubicHermiteSplineParametrization.hpp.
References deriv(), dim, eval(), second_deriv(), and val.
Referenced by CubicHermiteSplineParametrization().
|
inline |
Definition at line 73 of file CubicHermiteSplineParametrization.hpp.
References boundary_id_to_node_id_, boundary_id_to_spline_count_, dim, node_id_to_spline_, node_id_to_t_, V, x, and y.
|
inlinestatic |
Definition at line 233 of file CubicHermiteSplineParametrization.hpp.
References dim, eval(), and val.
|
inline |
Definition at line 57 of file CubicHermiteSplineParametrization.hpp.
References boundary_id_to_node_id_, dim, eval(), node_id_to_spline_, node_id_to_t_, and V.
|
inlinestatic |
Definition at line 266 of file CubicHermiteSplineParametrization.hpp.
References val.
Referenced by find_nearest_spline().
|
private |
Definition at line 275 of file CubicHermiteSplineParametrization.hpp.
Referenced by CubicHermiteSplineParametrization(), derivative_wrt_params(), get_parameters(), and reparametrize().
|
private |
Definition at line 279 of file CubicHermiteSplineParametrization.hpp.
Referenced by CubicHermiteSplineParametrization(), derivative_wrt_params(), and get_parameters().
|
private |
Definition at line 278 of file CubicHermiteSplineParametrization.hpp.
Referenced by CubicHermiteSplineParametrization(), derivative_wrt_params(), find_nearest_spline(), get_parameters(), gradient(), and reparametrize().
|
private |
Definition at line 277 of file CubicHermiteSplineParametrization.hpp.
Referenced by CubicHermiteSplineParametrization(), derivative_wrt_params(), get_parameters(), and reparametrize().
|
private |
Definition at line 276 of file CubicHermiteSplineParametrization.hpp.
Referenced by CubicHermiteSplineParametrization(), derivative_wrt_params(), get_parameters(), and reparametrize().