Helios++
Helios software for LiDAR simulations
PyVertexWrapper.h
1 #pragma once
2 
3 #ifdef PYTHON_BINDING
4 
5 #include <Vertex.h>
6 #include <PythonDVec3.h>
7 
16 public:
17  // *** ATTRIBUTE *** //
18  // ******************* //
19  Vertex *v;
20  bool release = true;
21 
22  // *** CONSTRUCTION / DESTRUCTION *** //
23  // ************************************ //
25  this->v = v;
26  release = false;
27  }
28  PyVertexWrapper(Vertex const v){
29  this->v = new Vertex(v);
30  release = true;
31  }
32  virtual ~PyVertexWrapper(){}
33 
34  // *** GETTERS and SETTERS *** //
35  // ***************************** //
36  PythonDVec3 * getPosition() {return new PythonDVec3(&v->pos);}
37  PythonDVec3 * getNormal() {return new PythonDVec3(&v->normal);}
38 };
39 
40 #endif
Wrapper for Vertex class.
Definition: PyVertexWrapper.h:15
glm::dvec3 normal
Vertex normal vector.
Definition: Vertex.h:36
glm::dvec3 pos
Vertex 3D position.
Definition: Vertex.h:32
Wrapper to communicate glm::dvec3 with python.
Definition: PythonDVec3.h:14
Class representing a vertex.
Definition: Vertex.h:14