suanPan
NURBSVolume.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
30#ifndef NURBSVOLUME_H
31#define NURBSVOLUME_H
32
33#include "BSplineVolume.h"
34#include "NURBS.h"
35
36class NURBSVolume : public BSplineVolume, public NURBSBase {
37public:
39
40 [[nodiscard]] vec evaluate_point(double, double, double, const field<vec>&) const override;
41 [[nodiscard]] field<vec> evaluate_point_derivative(double, double, double, const field<vec>&, sword = -1) const override;
42
43 [[nodiscard]] cube evaluate_shape_function(double, double, double, const field<vec>&) const override;
44 [[nodiscard]] field<cube> evaluate_shape_function_derivative(double, double, double, const field<vec>&, sword = -1, sword = -1, sword = -1) const override;
45};
46
47class NURBSVolume3D final : public NURBSVolume {
48public:
49 explicit NURBSVolume3D(vec, vec, vec, field<vec>&& = {});
50};
51
52class NURBSVolume4D final : public NURBSVolume {
53public:
54 explicit NURBSVolume4D(vec, vec, vec, field<vec>&& = {});
55};
56
57#endif
58
Definition: BSplineVolume.h:35
BSplineVolume(vec, vec, vec, uword, field< vec > &&={})
Definition: BSplineVolume.cpp:20
Definition: NURBS.h:35
Definition: NURBSVolume.h:47
NURBSVolume3D(vec, vec, vec, field< vec > &&={})
Definition: NURBSVolume.cpp:129
Definition: NURBSVolume.h:52
NURBSVolume4D(vec, vec, vec, field< vec > &&={})
Definition: NURBSVolume.cpp:132
Definition: NURBSVolume.h:36
field< cube > evaluate_shape_function_derivative(double, double, double, const field< vec > &, sword=-1, sword=-1, sword=-1) const override
Definition: NURBSVolume.cpp:59
cube evaluate_shape_function(double, double, double, const field< vec > &) const override
Definition: NURBSVolume.cpp:49
field< vec > evaluate_point_derivative(double, double, double, const field< vec > &, sword=-1) const override
Definition: NURBSVolume.cpp:26
vec evaluate_point(double, double, double, const field< vec > &) const override
Definition: NURBSVolume.cpp:20
Mat< T > cube(const Mat< T > &int_pts, unsigned order, unsigned num_node=8)
Definition: shape.h:320