Topologic  0.8.9
NurbsCurve.h
1 // This file is part of Topologic software library.
2 // Copyright(C) 2019, Cardiff University and University College London
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero 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 Affero General Public License for more details.
13 //
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <https://www.gnu.org/licenses/>.
16 
17 #pragma once
18 
19 #include "Geometry.h"
20 
21 #include <TopologicCore/include/NurbsCurve.h>
22 
23 using namespace System;
24 using namespace System::Collections::Generic;
25 
28 namespace Topologic {
29  ref class Vertex;
32  public ref class NurbsCurve : Geometry
33  {
34  public:
35  property bool IsPeriodic
36  {
37  bool get();
38  }
39 
40  property bool IsRational
41  {
42  bool get();
43  }
44 
45  property int Degree
46  {
47  int get();
48  }
49 
50  property List<Vertex^>^ ControlVertices
51  {
52  List<Vertex^>^ get();
53  }
54 
55  property List<double>^ Knots
56  {
57  List<double>^ get();
58  }
59 
60  property double FirstParameter
61  {
62  double get();
63  }
64 
65  property double LastParameter
66  {
67  double get();
68  }
69 
70  public protected:
71  NurbsCurve(const std::shared_ptr<TopologicCore::NurbsCurve>& kpCoreNurbsCurve);
72  virtual ~NurbsCurve();
73 
74  protected:
75  std::shared_ptr<TopologicCore::NurbsCurve>* m_pCoreNurbsCurve;
76  };
77 }
Definition: Geometry.h:30
Definition: NurbsCurve.h:32
Topologic is an open-source software modelling library enabling hierarchical and topological represen...
Definition: About.h:23