Biorbd
Release_1.13.0
Toggle main menu visibility
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
9
namespace
BIORBD_NAMESPACE {
10
namespace
utils {
11
class
Vector3d
;
12
}
13
14
namespace
rigidbody {
15
19
class
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
62
utils::Vector3d
faceAsDouble
();
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
BIORBD_NAMESPACE::rigidbody::MeshFace::faceAsDouble
utils::Vector3d faceAsDouble()
convert the integer nature of the face to a double
Definition
MeshFace.cpp:23
BIORBD_NAMESPACE::rigidbody::MeshFace::DeepCopy
MeshFace DeepCopy() const
Deep copy of a MeshFace.
Definition
MeshFace.cpp:11
BIORBD_NAMESPACE::rigidbody::MeshFace::MeshFace
MeshFace(const std::vector< int > &vertex=std::vector< int >(3))
Contruct face MeshFace.
Definition
MeshFace.cpp:8
BIORBD_NAMESPACE::rigidbody::MeshFace::operator()
int & operator()(size_t idx)
Allows to assign/get using ().
Definition
MeshFace.cpp:21
BIORBD_NAMESPACE::rigidbody::MeshFace::face
std::vector< int > face()
Returns the face.
Definition
MeshFace.cpp:30
BIORBD_NAMESPACE::rigidbody::MeshFace::setFace
void setFace(const std::vector< int > &pts)
set the MeshFace from a new point
Definition
MeshFace.cpp:32
BIORBD_NAMESPACE::rigidbody::MeshFace::m_face
std::shared_ptr< std::vector< int > > m_face
The face.
Definition
MeshFace.h:71
BIORBD_NAMESPACE::utils::Vector3d
Wrapper around Eigen Vector3d and attach it to a parent.
Definition
Vector3d.h:27
include
RigidBody
MeshFace.h
Generated by
1.18.0