PolyFEM
Loading...
Searching...
No Matches
QuadraticBSpline2d.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
QuadraticBSpline.hpp
"
4
5
#include <array>
6
#include <cassert>
7
8
#include <Eigen/Dense>
9
10
namespace
polyfem
11
{
12
namespace
basis
13
{
14
class
QuadraticBSpline2d
15
{
16
public
:
17
QuadraticBSpline2d
()
18
{
19
}
20
21
QuadraticBSpline2d
(
const
std::array<double, 4> &knots_u,
const
std::array<double, 4> &knots_v)
22
:
spline_u_
(knots_u),
spline_v_
(knots_v)
23
{
24
}
25
26
void
init
(
const
std::array<double, 4> &knots_u,
const
std::array<double, 4> &knots_v);
27
28
void
interpolate
(
const
Eigen::MatrixXd &ts, Eigen::MatrixXd &result)
const
;
29
double
interpolate
(
const
double
u,
const
double
v)
const
;
30
31
void
derivative
(
const
Eigen::MatrixXd &ts, Eigen::MatrixXd &result)
const
;
32
33
private
:
34
QuadraticBSpline
spline_u_
;
35
QuadraticBSpline
spline_v_
;
36
};
37
}
// namespace basis
38
}
// namespace polyfem
QuadraticBSpline.hpp
polyfem::basis::QuadraticBSpline2d
Definition
QuadraticBSpline2d.hpp:15
polyfem::basis::QuadraticBSpline2d::spline_u_
QuadraticBSpline spline_u_
Definition
QuadraticBSpline2d.hpp:34
polyfem::basis::QuadraticBSpline2d::QuadraticBSpline2d
QuadraticBSpline2d()
Definition
QuadraticBSpline2d.hpp:17
polyfem::basis::QuadraticBSpline2d::init
void init(const std::array< double, 4 > &knots_u, const std::array< double, 4 > &knots_v)
Definition
QuadraticBSpline2d.cpp:7
polyfem::basis::QuadraticBSpline2d::interpolate
void interpolate(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
Definition
QuadraticBSpline2d.cpp:13
polyfem::basis::QuadraticBSpline2d::derivative
void derivative(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
Definition
QuadraticBSpline2d.cpp:29
polyfem::basis::QuadraticBSpline2d::QuadraticBSpline2d
QuadraticBSpline2d(const std::array< double, 4 > &knots_u, const std::array< double, 4 > &knots_v)
Definition
QuadraticBSpline2d.hpp:21
polyfem::basis::QuadraticBSpline2d::spline_v_
QuadraticBSpline spline_v_
Definition
QuadraticBSpline2d.hpp:35
polyfem::basis::QuadraticBSpline
Definition
QuadraticBSpline.hpp:12
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
basis
function
QuadraticBSpline2d.hpp
Generated by
1.9.8