Rumba C++ SDK
Points.h
Go to the documentation of this file.
1 /*
2 
3  *
4  ***
5  *****
6  ********************* Mercenaries Engineering SARL
7  ***************** Copyright (C) 2018
8  *************
9  ********* http://www.mercenaries-engineering.com
10  ***********
11  **** ****
12  ** **
13 
14 */
15 #pragma once
16 
17 #include "Value.h"
18 #include "Buffer.h"
19 #include "Shape.h"
20 
21  namespace maquina
22  {
24 
25  class MAQUINA_EXPORT Points : public Shape
26  {
27  public:
28 
30  Points();
31 
33 
34  Points(const Value &v);
35 
37  BufferV3f write_points();
38 
40  const BufferConstV3f read_points() const;
41 
43  size_t point_count() const;
44 
46 
47  void compute_vertex_normals(BufferV3f &result) const;
48 
50  static const Points default_value;
51 
53  Points(std::shared_ptr<Impl> impl) { _impl=impl; }
54  };
55  }
A value with geometrical attributes. Base of all shape values.
Definition: Shape.h:25
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
#define MAQUINA_EXPORT
Definition: Export.h:31
static const Points default_value
The default value.
Definition: Points.h:50
A set of 3d points.
Definition: Points.h:25
Base class of all Rumba values.
Definition: Value.h:34