Biorbd Release_1.13.0
Loading...
Searching...
No Matches
MeshFace.h
1#ifndef BIORBD_RIGIDBODY_MESH_FACE_H
2#define BIORBD_RIGIDBODY_MESH_FACE_H
3
4#include "biorbdConfig.h"
5
6#include <memory>
7#include <vector>
8
9namespace BIORBD_NAMESPACE {
10namespace utils {
11class Vector3d;
12}
13
14namespace rigidbody {
15
19class BIORBD_API MeshFace {
20 public:
25 MeshFace(const std::vector<int>& vertex = std::vector<int>(3));
26
31 MeshFace DeepCopy() const;
32
37 void DeepCopy(const MeshFace& other);
38
44 int& operator()(size_t idx);
45
50 void setFace(const std::vector<int>& pts);
51
56 void setFace(const MeshFace& other);
57
63
68 std::vector<int> face();
69
70 protected:
71 std::shared_ptr<std::vector<int>> m_face;
72};
73
74} // namespace rigidbody
75} // namespace BIORBD_NAMESPACE
76
77#endif // BIORBD_RIGIDBODY_MESH_FACE_H
utils::Vector3d faceAsDouble()
convert the integer nature of the face to a double
Definition MeshFace.cpp:23
MeshFace DeepCopy() const
Deep copy of a MeshFace.
Definition MeshFace.cpp:11
MeshFace(const std::vector< int > &vertex=std::vector< int >(3))
Contruct face MeshFace.
Definition MeshFace.cpp:8
int & operator()(size_t idx)
Allows to assign/get using ().
Definition MeshFace.cpp:21
std::vector< int > face()
Returns the face.
Definition MeshFace.cpp:30
void setFace(const std::vector< int > &pts)
set the MeshFace from a new point
Definition MeshFace.cpp:32
std::shared_ptr< std::vector< int > > m_face
The face.
Definition MeshFace.h:71
Wrapper around Eigen Vector3d and attach it to a parent.
Definition Vector3d.h:27