Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

subdivision3.h 5.07 KB
Newer Older
1
2
3
/*******************************************************************************
* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps  *
* version 0.1                                                                  *
4
* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg           *
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
*                                                                              *
* This library is free software; you can redistribute it and/or modify it      *
* under the terms of the GNU Lesser General Public License as published by the *
* Free Software Foundation; either version 2.1 of the License, or (at your     *
* option) any later version.                                                   *
*                                                                              *
* This library is distributed in the hope that it will be useful, but WITHOUT  *
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or        *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License  *
* for more details.                                                            *
*                                                                              *
* You should have received a copy of the GNU Lesser General Public License     *
* along with this library; if not, write to the Free Software Foundation,      *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.           *
*                                                                              *
20
* Web site: http://cgogn.unistra.fr/                                           *
21
22
23
24
25
26
27
28
29
30
31
32
33
34
* Contact information: cgogn@unistra.fr                                        *
*                                                                              *
*******************************************************************************/

#ifndef __IMPLICIT_HIERARCHICAL_MESH_SUBDIVISION3__
#define __IMPLICIT_HIERARCHICAL_MESH_SUBDIVISION3__


namespace CGoGN
{

namespace Algo
{

35
36
37
namespace Volume
{

untereiner's avatar
untereiner committed
38
namespace IHM
39
40
{

41
42
43
44
45
46
enum SubdivideType
{
	S_TRI,
	S_QUAD
} ;

47
48
49
50



template <typename PFP>
51
void newLevelHexa(typename PFP::MAP& map, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
52
53


54
55
56
57
/***********************************************************************************
 *								 Subdivision									   *
 ***********************************************************************************/

58
template <typename PFP>
59
void subdivideEdge(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position) ;
60
61

template <typename PFP>
62
void subdivideFace(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position, SubdivideType sType = S_TRI);
63

64
template <typename PFP>
65
Dart subdivideVolumeClassic(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
66
67
68
69
70
71
72
73
74








template <typename PFP>
75
void subdivideEdgeWrong(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position) ;
76
77

template <typename PFP>
78
void subdivideFaceWrong(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position, SubdivideType sType = S_TRI);
79
80

template <typename PFP>
81
Dart subdivideVolumeClassicWrong(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
82
83
84
85
86
87
88
89
90









91
template <typename PFP>
92
Dart subdivideVolume(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
93

94
95
96
97




untereiner's avatar
untereiner committed
98
template <typename PFP>
99
Dart subdivideVolumeGen(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
100

101

102

untereiner's avatar
untereiner committed
103
template <typename PFP>
104
Dart subdivideVolumeClassic2(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
untereiner's avatar
untereiner committed
105

106

untereiner's avatar
untereiner committed
107
template <typename PFP>
108
void subdivideLoop(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
untereiner's avatar
untereiner committed
109
110


111
112
113
/***********************************************************************************
 *								 Simplification									   *
 ***********************************************************************************/
untereiner's avatar
untereiner committed
114

untereiner's avatar
untereiner committed
115
template <typename PFP>
116
void coarsenEdge(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
untereiner's avatar
untereiner committed
117
118

template <typename PFP>
119
void coarsenFace(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position, SubdivideType sType = S_TRI);
untereiner's avatar
untereiner committed
120
121

template <typename PFP>
122
void coarsenVolume(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
untereiner's avatar
untereiner committed
123

untereiner's avatar
ihm3  
untereiner committed
124
125
126
127
128
129
130
/***********************************************************************************
 *												Raffinement
 ***********************************************************************************/
/*
 * Un brin de la face oppose aux faces a spliter
 */
template <typename PFP>
131
void splitVolume(typename PFP::MAP& map, Dart d, VertexAttribute<typename PFP::VEC3, typename PFP::MAP>& position);
untereiner's avatar
ihm3  
untereiner committed
132

133

untereiner's avatar
untereiner committed
134

135
136

} //namespace IHM
137
} // Volume
138
139
140
141
142
143
} //namespace Algo
} //namespace CGoGN

#include "Algo/ImplicitHierarchicalMesh/subdivision3.hpp"

#endif