suanPan
NURBSSurface.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 NURBSSURFACE_H
31#define NURBSSURFACE_H
32
33#include "BSplineSurface.h"
34#include "NURBS.h"
35
36class NURBSSurface : public BSplineSurface, public NURBSBase {
37public:
39
40 [[nodiscard]] vec evaluate_point(double, double, const field<vec>&) const override;
41 [[nodiscard]] field<vec> evaluate_point_derivative(double, double, const field<vec>&, sword = -1, sword = -1) const override;
42
43 [[nodiscard]] mat evaluate_shape_function(double, double, const field<vec>&) const override;
44 [[nodiscard]] field<mat> evaluate_shape_function_derivative(double, double, const field<vec>&, sword = -1, sword = -1) const override;
45};
46
47class NURBSSurface2D final : public NURBSSurface {
48public:
49 explicit NURBSSurface2D(vec, vec, field<vec>&& = {});
50};
51
52class NURBSSurface3D final : public NURBSSurface {
53public:
54 explicit NURBSSurface3D(vec, vec, field<vec>&& = {});
55};
56
57class NURBSSurface4D final : public NURBSSurface {
58public:
59 explicit NURBSSurface4D(vec, vec, field<vec>&& = {});
60};
61
62#endif
63
Definition: BSplineSurface.h:35
BSplineSurface(vec, vec, uword, field< vec > &&={})
Definition: BSplineSurface.cpp:20
Definition: NURBS.h:35
Definition: NURBSSurface.h:47
NURBSSurface2D(vec, vec, field< vec > &&={})
Definition: NURBSSurface.cpp:111
Definition: NURBSSurface.h:52
NURBSSurface3D(vec, vec, field< vec > &&={})
Definition: NURBSSurface.cpp:114
Definition: NURBSSurface.h:57
NURBSSurface4D(vec, vec, field< vec > &&={})
Definition: NURBSSurface.cpp:117
Definition: NURBSSurface.h:36
vec evaluate_point(double, double, const field< vec > &) const override
Definition: NURBSSurface.cpp:20
mat evaluate_shape_function(double, double, const field< vec > &) const override
Definition: NURBSSurface.cpp:49
field< vec > evaluate_point_derivative(double, double, const field< vec > &, sword=-1, sword=-1) const override
Definition: NURBSSurface.cpp:26
field< mat > evaluate_shape_function_derivative(double, double, const field< vec > &, sword=-1, sword=-1) const override
Definition: NURBSSurface.cpp:59