Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MeshItems.hh
1 /* ========================================================================= *
2 * *
3 * OpenMesh *
4 * Copyright (c) 2001-2015, RWTH-Aachen University *
5 * Department of Computer Graphics and Multimedia *
6 * All rights reserved. *
7 * www.openmesh.org *
8 * *
9 *---------------------------------------------------------------------------*
10 * This file is part of OpenMesh. *
11 *---------------------------------------------------------------------------*
12 * *
13 * Redistribution and use in source and binary forms, with or without *
14 * modification, are permitted provided that the following conditions *
15 * are met: *
16 * *
17 * 1. Redistributions of source code must retain the above copyright notice, *
18 * this list of conditions and the following disclaimer. *
19 * *
20 * 2. Redistributions in binary form must reproduce the above copyright *
21 * notice, this list of conditions and the following disclaimer in the *
22 * documentation and/or other materials provided with the distribution. *
23 * *
24 * 3. Neither the name of the copyright holder nor the names of its *
25 * contributors may be used to endorse or promote products derived from *
26 * this software without specific prior written permission. *
27 * *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
30 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
31 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
32 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
33 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
34 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
35 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
36 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
37 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
38 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
39 * *
40 * ========================================================================= */
41
42
43 /*===========================================================================*\
44 * *
45 * $Revision$ *
46 * $Date$ *
47 * *
48 \*===========================================================================*/
49
50
51 //=============================================================================
52 //
53 // Mesh Items Concept
54 //
55 //=============================================================================
56
57
58 #error this file is for documentation purposes only
59
60
61 //== NAMESPACES ===============================================================
62
63
64 namespace OpenMesh {
65 namespace Concepts {
66
67
68 //== CLASS DEFINITION =========================================================
69
70
76 struct MeshItems {
77
78
86 template <class Refs_> class VertexT
87 {
88 public:
89
91 typedef Refs_ Refs;
92
94 VertexT();
95
97 HalfedgeHandle halfedge_handle() const;
99 void set_halfedge_handle(HalfedgeHandle _eh);
100 };
101
102
103
104
112 template <class Refs_> class HalfedgeT
113 {
114 public:
115
117 typedef Refs_ Refs;
118
121 VertexHandle vertex_handle() const;
122
125 void set_vertex_handle(VertexHandle _vh);
126
129 FaceHandle face_handle() const;
130
133 void set_face_handle(FaceHandle _fh);
134
137 HalfedgeHandle next_halfedge_handle() const;
138
141 void set_next_halfedge_handle(HalfedgeHandle _eh);
142 };
143
144
145
146
154 template <class Refs_> class EdgeT
155 {
156 public:
157
159 typedef Refs_ Refs;
160
163 Halfedge halfedges[2];
164 };
165
166
167
168
176 template <class Refs_> class FaceT
177 {
178 public:
179
181 typedef Refs_ Refs;
182
185 typedef GenProg::TagTrue IsTriangle;
187 static bool is_triangle();
188
190 unsigned char n_vertices() const;
193 void set_n_vertices(unsigned char _n);
194
196 HalfedgeHandle halfedge_handle() const;
199 void set_halfedge_handle(HalfedgeHandle _eh);
200 };
201
202 };
203
204 //=============================================================================
205 } // namespace Concepts
206 } // namespace OpenMesh
207 //=============================================================================
OpenMesh::Concepts::MeshItems::HalfedgeT::set_face_handle
void set_face_handle(FaceHandle _fh)
OpenMesh::Concepts::MeshItems::FaceT::set_n_vertices
void set_n_vertices(unsigned char _n)
OpenMesh::Concepts::MeshItems::VertexT::set_halfedge_handle
void set_halfedge_handle(HalfedgeHandle _eh)
Set the outgoing halfedge link.
OpenMesh::Concepts::MeshItems::EdgeT
Definition: MeshItems.hh:154
OpenMesh::Concepts::MeshItems::FaceT::IsTriangle
GenProg::TagTrue IsTriangle
Definition: MeshItems.hh:185
OpenMesh::Concepts::MeshItems::HalfedgeT::face_handle
FaceHandle face_handle() const
OpenMesh
Definition: MeshItems.hh:64
OpenMesh::Concepts::MeshItems::EdgeT::halfedges
Halfedge halfedges[2]
Definition: MeshItems.hh:163
OpenMesh::Concepts::MeshItems::FaceT::is_triangle
static bool is_triangle()
Run-time test: is this face a triangle?
OpenMesh::Concepts::MeshItems::HalfedgeT::vertex_handle
VertexHandle vertex_handle() const
OpenMesh::HalfedgeHandle
Handle for a halfedge entity.
Definition: Handles.hh:132
OpenMesh::Concepts::MeshItems::HalfedgeT::next_halfedge_handle
HalfedgeHandle next_halfedge_handle() const
OpenMesh::Concepts::MeshItems::EdgeT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:159
OpenMesh::Concepts::MeshItems
Definition: MeshItems.hh:76
OpenMesh::Concepts::MeshItems::FaceT
Definition: MeshItems.hh:176
OpenMesh::Concepts::MeshItems::FaceT::n_vertices
unsigned char n_vertices() const
Get the number of vertices of this face.
OpenMesh::Concepts::MeshItems::FaceT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:181
OpenMesh::Concepts::MeshItems::FaceT::halfedge_handle
HalfedgeHandle halfedge_handle() const
Get a halfedge that belongs to this face.
OpenMesh::Concepts::MeshItems::HalfedgeT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:117
OpenMesh::Concepts::MeshItems::VertexT
Definition: MeshItems.hh:86
OpenMesh::VertexHandle
Handle for a vertex entity.
Definition: Handles.hh:125
OpenMesh::Concepts::MeshItems::FaceT::set_halfedge_handle
void set_halfedge_handle(HalfedgeHandle _eh)
OpenMesh::Concepts::MeshItems::VertexT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:91
OpenMesh::FaceHandle
Handle for a face entity.
Definition: Handles.hh:146
OpenMesh::Concepts::MeshItems::HalfedgeT
Definition: MeshItems.hh:112
OpenMesh::Concepts::MeshItems::HalfedgeT::set_vertex_handle
void set_vertex_handle(VertexHandle _vh)
OpenMesh::Concepts::MeshItems::HalfedgeT::set_next_halfedge_handle
void set_next_halfedge_handle(HalfedgeHandle _eh)
OpenMesh::Concepts::MeshItems::VertexT::VertexT
VertexT()
Default constructor.
OpenMesh::Concepts::MeshItems::VertexT::halfedge_handle
HalfedgeHandle halfedge_handle() const
Get an outgoing halfedge.