uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
TriangleMesh.h
Go to the documentation of this file.
1
/*//////////////////////////////////////////////////////////////////////////////
2
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
4
5
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
6
All rights reserved
7
8
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
9
10
------------------------------------------------------------------
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public
13
License as published by the Free Software Foundation; either
14
version 3.0 of the License, or (at your option) any later version.
15
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Lesser General Public License for more details.
20
21
You should have received a copy of the GNU Lesser General Public
22
License along with this library.
23
25
26
27
28
#ifndef TRIANGLEMESH_H
29
#define TRIANGLEMESH_H
30
31
#include <vector>
32
33
#include "Math/Dense.h"
34
35
namespace uLib {
36
37
class TriangleMesh
38
{
39
public:
40
void PrintSelf(std::ostream &o);
41
42
void AddPoint(const Vector3f &pt);
43
44
void AddTriangle(const Id_t *id);
45
void AddTriangle(const Vector3i &id);
46
47
inline std::vector<Vector3f> & Points() { return this->m_Points; }
48
inline std::vector<Vector3i> & Triangles() { return this->m_Triangles; }
49
50
private:
51
std::vector<Vector3f> m_Points;
52
std::vector<Vector3i> m_Triangles;
53
54
};
55
56
}
57
58
59
#endif // TRIANGLEMESH_H
Math
TriangleMesh.h
Generated by
1.8.5