UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
u3d_simple_triangled_surface.hpp
1 #ifndef U3D_SIMPLE_TRIANGLED_SURFACE_HPP_
2 #define U3D_SIMPLE_TRIANGLED_SURFACE_HPP_
3 
4 #include "u3d_triangled_abstract_surface.hpp"
5 #include <u3d_box.hpp>
6 
10 {
11 public:
12 
14  enum Type
15  {
16  XYZ = 0,
17  XYZp,
18  XYZq,
19  XYZpp,
20  XYZqq,
21  XYZpq
22  };
23 
25  U3dSimpleTriangledSurface(U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10,
27 
31 
32 
34  virtual void triangulate();
35 
36 
37  virtual U3dBox getBox() const {return m_box;};
38 
42 
44  void setGridSizes(int n, int m)
45  {m_m = m; m_n = n; triangulate();}
46 
49  virtual void addPoint(U3dPoint *point){;}
50 
53  virtual bool removePoint(int ind){return true;}
54 
57  virtual void movePoint(int ind, double x, double y, double z){;}
58 
59 protected:
60 
61  U3dBox m_box;
63  int m_m, m_n;
64 
67 };
68 
69 #endif //U3D_SIMPLE_TRIANGLED_SURFACE_HPP_
virtual void movePoint(int ind, double x, double y, double z)
Definition: u3d_simple_triangled_surface.hpp:57
Definition: u3d_math_abstract_surface.hpp:11
Definition: u3d_triangled_abstract_surface.hpp:31
U3dSimpleTriangledSurface::Type m_type
Definition: u3d_simple_triangled_surface.hpp:66
U3dSimpleTriangledSurface(U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10, U3dSimpleTriangledSurface::Type type=XYZ)
Definition: u3d_simple_triangled_surface.hpp:9
Definition: u3d_box.hpp:24
virtual bool removePoint(int ind)
Definition: u3d_simple_triangled_surface.hpp:53
Definition: geometry.H:16
virtual ~U3dSimpleTriangledSurface()
Definition: u3d_point.hpp:16
virtual void triangulate()
void setGridSizes(int n, int m)
Definition: u3d_simple_triangled_surface.hpp:44
Type
Definition: u3d_simple_triangled_surface.hpp:14
int m_m
Definition: u3d_simple_triangled_surface.hpp:63
virtual void addPoint(U3dPoint *point)
Definition: u3d_simple_triangled_surface.hpp:49