PolyFEM
Loading...
Searching...
No Matches
QuadraticBSpline3d.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
QuadraticBSpline3d
15
{
16
public
:
17
QuadraticBSpline3d
()
18
{
19
}
20
21
QuadraticBSpline3d
(
const
std::array<double, 4> &knots_u,
const
std::array<double, 4> &knots_v,
const
std::array<double, 4> &knots_w)
22
:
spline_u_
(knots_u),
spline_v_
(knots_v),
spline_w_
(knots_w)
23
{
24
}
25
26
void
init
(
const
std::array<double, 4> &knots_u,
const
std::array<double, 4> &knots_v,
const
std::array<double, 4> &knots_w);
27
28
void
interpolate
(
const
Eigen::MatrixXd &ts, Eigen::MatrixXd &result)
const
;
29
double
interpolate
(
const
double
u,
const
double
v,
const
double
w)
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
QuadraticBSpline
spline_w_
;
37
};
38
}
// namespace basis
39
}
// namespace polyfem
QuadraticBSpline.hpp
polyfem::basis::QuadraticBSpline3d
Definition
QuadraticBSpline3d.hpp:15
polyfem::basis::QuadraticBSpline3d::QuadraticBSpline3d
QuadraticBSpline3d(const std::array< double, 4 > &knots_u, const std::array< double, 4 > &knots_v, const std::array< double, 4 > &knots_w)
Definition
QuadraticBSpline3d.hpp:21
polyfem::basis::QuadraticBSpline3d::spline_v_
QuadraticBSpline spline_v_
Definition
QuadraticBSpline3d.hpp:35
polyfem::basis::QuadraticBSpline3d::spline_u_
QuadraticBSpline spline_u_
Definition
QuadraticBSpline3d.hpp:34
polyfem::basis::QuadraticBSpline3d::interpolate
void interpolate(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
Definition
QuadraticBSpline3d.cpp:14
polyfem::basis::QuadraticBSpline3d::QuadraticBSpline3d
QuadraticBSpline3d()
Definition
QuadraticBSpline3d.hpp:17
polyfem::basis::QuadraticBSpline3d::derivative
void derivative(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
Definition
QuadraticBSpline3d.cpp:30
polyfem::basis::QuadraticBSpline3d::spline_w_
QuadraticBSpline spline_w_
Definition
QuadraticBSpline3d.hpp:36
polyfem::basis::QuadraticBSpline3d::init
void init(const std::array< double, 4 > &knots_u, const std::array< double, 4 > &knots_v, const std::array< double, 4 > &knots_w)
Definition
QuadraticBSpline3d.cpp:7
polyfem::basis::QuadraticBSpline
Definition
QuadraticBSpline.hpp:12
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
basis
function
QuadraticBSpline3d.hpp
Generated by
1.9.8