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
15
class
PyVertexWrapper
{
16
public
:
17
// *** ATTRIBUTE *** //
18
// ******************* //
19
Vertex
*v;
20
bool
release =
true
;
21
22
// *** CONSTRUCTION / DESTRUCTION *** //
23
// ************************************ //
24
PyVertexWrapper
(
Vertex
*v){
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
PyVertexWrapper
Wrapper for Vertex class.
Definition:
PyVertexWrapper.h:15
Vertex::normal
glm::dvec3 normal
Vertex normal vector.
Definition:
Vertex.h:36
Vertex::pos
glm::dvec3 pos
Vertex 3D position.
Definition:
Vertex.h:32
PythonDVec3
Wrapper to communicate glm::dvec3 with python.
Definition:
PythonDVec3.h:14
Vertex
Class representing a vertex.
Definition:
Vertex.h:14
src
pybinds
PyVertexWrapper.h
Generated by
1.8.13