OpenMesh: OpenMesh/Core/Mesh/SmartHandles.hh Source File

| OpenMesh

SmartHandles.hh
1 /* ========================================================================= *
2 * *
3 * OpenMesh *
4 * Copyright (c) 2001-2019, 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 #ifndef OPENMESH_POLYCONNECTIVITY_INTERFACE_INCLUDE
43 #error Do not include this directly, include instead PolyConnectivity.hh
44 #endif//OPENMESH_POLYCONNECTIVITY_INTERFACE_INCLUDE
45
46 #include <OpenMesh/Core/Mesh/PolyConnectivity.hh>
47
48 //== NAMESPACES ===============================================================
49
50 namespace OpenMesh {
51
52 //== FORWARD DECLARATION ======================================================
53
54 struct SmartVertexHandle;
55 struct SmartHalfedgeHandle;
56 struct SmartEdgeHandle;
57 struct SmartFaceHandle;
58
59
60 //== CLASS DEFINITION =========================================================
61
63 class OPENMESHDLLEXPORT SmartBaseHandle
64 {
65 public:
66 explicit SmartBaseHandle(const PolyConnectivity* _mesh = nullptr) : mesh_(_mesh) {}
67
69 const PolyConnectivity* mesh() const { return mesh_; }
70
71 // TODO: should operators ==, !=, < look at mesh_?
72
73 private:
74 const PolyConnectivity* mesh_;
75
76 };
77
79 template <typename HandleType>
80 class SmartHandleStatusPredicates
81 {
82 public:
84 bool feature() const;
86 bool selected() const;
88 bool tagged() const;
90 bool tagged2() const;
92 bool locked() const;
94 bool hidden() const;
96 bool deleted() const;
97 };
98
100 template <typename HandleType>
101 class SmartHandleBoundaryPredicate
102 {
103 public:
105 bool is_boundary() const;
106 };
107
109 struct OPENMESHDLLEXPORT SmartVertexHandle : public SmartBaseHandle, VertexHandle, SmartHandleStatusPredicates<SmartVertexHandle>, SmartHandleBoundaryPredicate<SmartVertexHandle>
110 {
111 explicit SmartVertexHandle(int _idx=-1, const PolyConnectivity* _mesh = nullptr) : SmartBaseHandle(_mesh), VertexHandle(_idx) {}
112
114 SmartHalfedgeHandle out() const;
116 SmartHalfedgeHandle halfedge() const; // alias for out
118 SmartHalfedgeHandle in() const;
119
121 PolyConnectivity::ConstVertexFaceRange faces() const;
123 PolyConnectivity::ConstVertexFaceCWRange faces_cw() const;
125 PolyConnectivity::ConstVertexFaceCCWRange faces_ccw() const;
127 PolyConnectivity::ConstVertexEdgeRange edges() const;
129 PolyConnectivity::ConstVertexEdgeCWRange edges_cw() const;
131 PolyConnectivity::ConstVertexEdgeCCWRange edges_ccw() const;
133 PolyConnectivity::ConstVertexVertexRange vertices() const;
135 PolyConnectivity::ConstVertexVertexCWRange vertices_cw() const;
137 PolyConnectivity::ConstVertexVertexCCWRange vertices_ccw() const;
139 PolyConnectivity::ConstVertexIHalfedgeRange incoming_halfedges() const;
141 PolyConnectivity::ConstVertexIHalfedgeCWRange incoming_halfedges_cw() const;
143 PolyConnectivity::ConstVertexIHalfedgeCCWRange incoming_halfedges_ccw() const;
145 PolyConnectivity::ConstVertexIHalfedgeRange incoming_halfedges(HalfedgeHandle _heh) const;
147 PolyConnectivity::ConstVertexIHalfedgeCWRange incoming_halfedges_cw(HalfedgeHandle _heh) const;
149 PolyConnectivity::ConstVertexIHalfedgeCCWRange incoming_halfedges_ccw(HalfedgeHandle _heh) const;
151 PolyConnectivity::ConstVertexOHalfedgeRange outgoing_halfedges() const;
153 PolyConnectivity::ConstVertexOHalfedgeCWRange outgoing_halfedges_cw() const;
155 PolyConnectivity::ConstVertexOHalfedgeCCWRange outgoing_halfedges_ccw() const;
157 PolyConnectivity::ConstVertexOHalfedgeRange outgoing_halfedges(HalfedgeHandle _heh) const;
159 PolyConnectivity::ConstVertexOHalfedgeCWRange outgoing_halfedges_cw(HalfedgeHandle _heh) const;
161 PolyConnectivity::ConstVertexOHalfedgeCCWRange outgoing_halfedges_ccw(HalfedgeHandle _heh) const;
162
164 uint valence() const;
166 bool is_manifold() const;
167 };
168
169 struct OPENMESHDLLEXPORT SmartHalfedgeHandle : public SmartBaseHandle, HalfedgeHandle, SmartHandleStatusPredicates<SmartHalfedgeHandle>, SmartHandleBoundaryPredicate<SmartHalfedgeHandle>
170 {
171 explicit SmartHalfedgeHandle(int _idx=-1, const PolyConnectivity* _mesh = nullptr) : SmartBaseHandle(_mesh), HalfedgeHandle(_idx) {}
172
174 SmartHalfedgeHandle next() const;
176 SmartHalfedgeHandle prev() const;
178 SmartHalfedgeHandle opp() const;
180 SmartVertexHandle to() const;
182 SmartVertexHandle from() const;
184 SmartEdgeHandle edge() const;
186 SmartFaceHandle face() const;
187
189 PolyConnectivity::ConstHalfedgeLoopRange loop() const;
191 PolyConnectivity::ConstHalfedgeLoopCWRange loop_cw() const;
193 PolyConnectivity::ConstHalfedgeLoopCCWRange loop_ccw() const;
194 };
195
196 struct OPENMESHDLLEXPORT SmartEdgeHandle : public SmartBaseHandle, EdgeHandle, SmartHandleStatusPredicates<SmartEdgeHandle>, SmartHandleBoundaryPredicate<SmartEdgeHandle>
197 {
198 explicit SmartEdgeHandle(int _idx=-1, const PolyConnectivity* _mesh = nullptr) : SmartBaseHandle(_mesh), EdgeHandle(_idx) {}
199
201 SmartHalfedgeHandle halfedge(unsigned int _i) const;
203 SmartHalfedgeHandle h(unsigned int _i) const;
205 SmartHalfedgeHandle h0() const;
207 SmartHalfedgeHandle h1() const;
209 SmartVertexHandle vertex(unsigned int _i) const;
211 SmartVertexHandle v(unsigned int _i) const;
213 SmartVertexHandle v0() const;
215 SmartVertexHandle v1() const;
216 };
217
218 struct OPENMESHDLLEXPORT SmartFaceHandle : public SmartBaseHandle, FaceHandle, SmartHandleStatusPredicates<SmartFaceHandle>, SmartHandleBoundaryPredicate<SmartFaceHandle>
219 {
220 explicit SmartFaceHandle(int _idx=-1, const PolyConnectivity* _mesh = nullptr) : SmartBaseHandle(_mesh), FaceHandle(_idx) {}
221
223 SmartHalfedgeHandle halfedge() const;
224
226 PolyConnectivity::ConstFaceVertexRange vertices() const;
228 PolyConnectivity::ConstFaceVertexCWRange vertices_cw() const;
230 PolyConnectivity::ConstFaceVertexCCWRange vertices_ccw() const;
232 PolyConnectivity::ConstFaceHalfedgeRange halfedges() const;
234 PolyConnectivity::ConstFaceHalfedgeCWRange halfedges_cw() const;
236 PolyConnectivity::ConstFaceHalfedgeCCWRange halfedges_ccw() const;
238 PolyConnectivity::ConstFaceEdgeRange edges() const;
240 PolyConnectivity::ConstFaceEdgeCWRange edges_cw() const;
242 PolyConnectivity::ConstFaceEdgeCCWRange edges_ccw() const;
244 PolyConnectivity::ConstFaceFaceRange faces() const;
246 PolyConnectivity::ConstFaceFaceCWRange faces_cw() const;
248 PolyConnectivity::ConstFaceFaceCCWRange faces_ccw() const;
249
251 uint valence() const;
252 };
253
254
256 inline SmartVertexHandle make_smart(VertexHandle _vh, const PolyConnectivity* _mesh) { return SmartVertexHandle (_vh.idx(), _mesh); }
258 inline SmartHalfedgeHandle make_smart(HalfedgeHandle _hh, const PolyConnectivity* _mesh) { return SmartHalfedgeHandle(_hh.idx(), _mesh); }
260 inline SmartEdgeHandle make_smart(EdgeHandle _eh, const PolyConnectivity* _mesh) { return SmartEdgeHandle (_eh.idx(), _mesh); }
262 inline SmartFaceHandle make_smart(FaceHandle _fh, const PolyConnectivity* _mesh) { return SmartFaceHandle (_fh.idx(), _mesh); }
263
265 inline SmartVertexHandle make_smart(VertexHandle _vh, const PolyConnectivity& _mesh) { return SmartVertexHandle (_vh.idx(), &_mesh); }
267 inline SmartHalfedgeHandle make_smart(HalfedgeHandle _hh, const PolyConnectivity& _mesh) { return SmartHalfedgeHandle(_hh.idx(), &_mesh); }
269 inline SmartEdgeHandle make_smart(EdgeHandle _eh, const PolyConnectivity& _mesh) { return SmartEdgeHandle (_eh.idx(), &_mesh); }
271 inline SmartFaceHandle make_smart(FaceHandle _fh, const PolyConnectivity& _mesh) { return SmartFaceHandle (_fh.idx(), &_mesh); }
272
273
274 // helper to convert Handle Types to Smarthandle Types
275 template <typename HandleT>
276 struct SmartHandle;
277
278 template <> struct SmartHandle<VertexHandle> { using type = SmartVertexHandle; };
279 template <> struct SmartHandle<HalfedgeHandle> { using type = SmartHalfedgeHandle; };
280 template <> struct SmartHandle<EdgeHandle> { using type = SmartEdgeHandle; };
281 template <> struct SmartHandle<FaceHandle> { using type = SmartFaceHandle; };
282
283
284 template <typename HandleType>
285 inline bool SmartHandleStatusPredicates<HandleType>::feature() const
286 {
287 const auto& handle = static_cast<const HandleType&>(*this);
288 assert(handle.mesh() != nullptr);
289 return handle.mesh()->status(handle).feature();
290 }
291
292 template <typename HandleType>
293 inline bool SmartHandleStatusPredicates<HandleType>::selected() const
294 {
295 const auto& handle = static_cast<const HandleType&>(*this);
296 assert(handle.mesh() != nullptr);
297 return handle.mesh()->status(handle).selected();
298 }
299
300 template <typename HandleType>
301 inline bool SmartHandleStatusPredicates<HandleType>::tagged() const
302 {
303 const auto& handle = static_cast<const HandleType&>(*this);
304 assert(handle.mesh() != nullptr);
305 return handle.mesh()->status(handle).tagged();
306 }
307
308 template <typename HandleType>
309 inline bool SmartHandleStatusPredicates<HandleType>::tagged2() const
310 {
311 const auto& handle = static_cast<const HandleType&>(*this);
312 assert(handle.mesh() != nullptr);
313 return handle.mesh()->status(handle).tagged2();
314 }
315
316 template <typename HandleType>
317 inline bool SmartHandleStatusPredicates<HandleType>::locked() const
318 {
319 const auto& handle = static_cast<const HandleType&>(*this);
320 assert(handle.mesh() != nullptr);
321 return handle.mesh()->status(handle).locked();
322 }
323
324 template <typename HandleType>
325 inline bool SmartHandleStatusPredicates<HandleType>::hidden() const
326 {
327 const auto& handle = static_cast<const HandleType&>(*this);
328 assert(handle.mesh() != nullptr);
329 return handle.mesh()->status(handle).hidden();
330 }
331
332 template <typename HandleType>
333 inline bool SmartHandleStatusPredicates<HandleType>::deleted() const
334 {
335 const auto& handle = static_cast<const HandleType&>(*this);
336 assert(handle.mesh() != nullptr);
337 return handle.mesh()->status(handle).deleted();
338 }
339
340 template <typename HandleType>
341 inline bool SmartHandleBoundaryPredicate<HandleType>::is_boundary() const
342 {
343 const auto& handle = static_cast<const HandleType&>(*this);
344 assert(handle.mesh() != nullptr);
345 return handle.mesh()->is_boundary(handle);
346 }
347
348 inline SmartHalfedgeHandle SmartVertexHandle::out() const
349 {
350 assert(mesh() != nullptr);
351 return make_smart(mesh()->halfedge_handle(*this), mesh());
352 }
353
354 inline SmartHalfedgeHandle SmartVertexHandle::halfedge() const
355 {
356 return out();
357 }
358
359 inline SmartHalfedgeHandle SmartVertexHandle::in() const
360 {
361 return out().opp();
362 }
363
364 inline uint SmartVertexHandle::valence() const
365 {
366 assert(mesh() != nullptr);
367 return mesh()->valence(*this);
368 }
369
370 inline bool SmartVertexHandle::is_manifold() const
371 {
372 assert(mesh() != nullptr);
373 return mesh()->is_manifold(*this);
374 }
375
376 inline SmartHalfedgeHandle SmartHalfedgeHandle::next() const
377 {
378 assert(mesh() != nullptr);
379 return make_smart(mesh()->next_halfedge_handle(*this), mesh());
380 }
381
382 inline SmartHalfedgeHandle SmartHalfedgeHandle::prev() const
383 {
384 assert(mesh() != nullptr);
385 return make_smart(mesh()->prev_halfedge_handle(*this), mesh());
386 }
387
388 inline SmartHalfedgeHandle SmartHalfedgeHandle::opp() const
389 {
390 assert(mesh() != nullptr);
391 return make_smart(mesh()->opposite_halfedge_handle(*this), mesh());
392 }
393
394 inline SmartVertexHandle SmartHalfedgeHandle::to() const
395 {
396 assert(mesh() != nullptr);
397 return make_smart(mesh()->to_vertex_handle(*this), mesh());
398 }
399
400 inline SmartVertexHandle SmartHalfedgeHandle::from() const
401 {
402 assert(mesh() != nullptr);
403 return make_smart(mesh()->from_vertex_handle(*this), mesh());
404 }
405
406 inline SmartEdgeHandle SmartHalfedgeHandle::edge() const
407 {
408 assert(mesh() != nullptr);
409 return make_smart(mesh()->edge_handle(*this), mesh());
410 }
411
412 inline SmartFaceHandle SmartHalfedgeHandle::face() const
413 {
414 assert(mesh() != nullptr);
415 return make_smart(mesh()->face_handle(*this), mesh());
416 }
417
418 inline SmartHalfedgeHandle SmartEdgeHandle::halfedge(unsigned int _i) const
419 {
420 assert(mesh() != nullptr);
421 return make_smart(mesh()->halfedge_handle(*this, _i), mesh());
422 }
423
424 inline SmartHalfedgeHandle SmartEdgeHandle::h(unsigned int _i) const
425 {
426 return halfedge(_i);
427 }
428
429 inline SmartHalfedgeHandle SmartEdgeHandle::h0() const
430 {
431 return h(0);
432 }
433
434 inline SmartHalfedgeHandle SmartEdgeHandle::h1() const
435 {
436 return h(1);
437 }
438
439 inline SmartVertexHandle SmartEdgeHandle::vertex(unsigned int _i) const
440 {
441 return halfedge(_i).from();
442 }
443
444 inline SmartVertexHandle SmartEdgeHandle::v(unsigned int _i) const
445 {
446 return vertex(_i);
447 }
448
449 inline SmartVertexHandle SmartEdgeHandle::v0() const
450 {
451 return v(0);
452 }
453
454 inline SmartVertexHandle SmartEdgeHandle::v1() const
455 {
456 return v(1);
457 }
458
459 inline SmartHalfedgeHandle SmartFaceHandle::halfedge() const
460 {
461 assert(mesh() != nullptr);
462 return make_smart(mesh()->halfedge_handle(*this), mesh());
463 }
464
465 inline uint SmartFaceHandle::valence() const
466 {
467 assert(mesh() != nullptr);
468 return mesh()->valence(*this);
469 }
470
471 //=============================================================================
472 } // namespace OpenMesh
473 //=============================================================================
474
475 //=============================================================================
OpenMesh
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
OpenMesh::make_smart
SmartVertexHandle make_smart(VertexHandle _vh, const PolyConnectivity *_mesh)
Creats a SmartVertexHandle from a VertexHandle and a Mesh.
Definition: SmartHandles.hh:256
OpenMesh::CirculatorRange
Generic class for iterator ranges.
Definition: PolyConnectivity_inline_impl.hh:92
OpenMesh::BaseHandle::idx
int idx() const
Get the underlying index of this handle.
Definition: Handles.hh:69
OpenMesh::VertexHandle
Handle for a vertex entity.
Definition: Handles.hh:121
OpenMesh::HalfedgeHandle
Handle for a halfedge entity.
Definition: Handles.hh:128
OpenMesh::EdgeHandle
Handle for a edge entity.
Definition: Handles.hh:135
OpenMesh::FaceHandle
Handle for a face entity.
Definition: Handles.hh:142
OpenMesh::PolyConnectivity
Connectivity Class for polygonal meshes.
Definition: PolyConnectivity.hh:115
OpenMesh::PolyConnectivity::valence
uint valence(VertexHandle _vh) const
Vertex valence.
Definition: PolyConnectivity.cc:1075
OpenMesh::PolyConnectivity::is_manifold
bool is_manifold(VertexHandle _vh) const
Is (the mesh at) vertex _vh two-manifold ?
Definition: PolyConnectivity.cc:84
OpenMesh::SmartBaseHandle
Base class for all smart handle types.
Definition: SmartHandles.hh:64
OpenMesh::SmartBaseHandle::mesh
const PolyConnectivity * mesh() const
Get the underlying mesh of this handle.
Definition: SmartHandles.hh:69
OpenMesh::SmartHandleStatusPredicates
Base class for all smart handle types that contains status related methods.
Definition: SmartHandles.hh:81
OpenMesh::SmartHandleStatusPredicates::selected
bool selected() const
Returns true iff the handle is marked as selected.
Definition: SmartHandles.hh:293
OpenMesh::SmartHandleStatusPredicates::feature
bool feature() const
Returns true iff the handle is marked as feature.
Definition: SmartHandles.hh:285
OpenMesh::SmartHandleStatusPredicates::locked
bool locked() const
Returns true iff the handle is marked as locked.
Definition: SmartHandles.hh:317
OpenMesh::SmartHandleStatusPredicates::deleted
bool deleted() const
Returns true iff the handle is marked as deleted.
Definition: SmartHandles.hh:333
OpenMesh::SmartHandleStatusPredicates::tagged
bool tagged() const
Returns true iff the handle is marked as tagged.
Definition: SmartHandles.hh:301
OpenMesh::SmartHandleStatusPredicates::tagged2
bool tagged2() const
Returns true iff the handle is marked as tagged2.
Definition: SmartHandles.hh:309
OpenMesh::SmartHandleStatusPredicates::hidden
bool hidden() const
Returns true iff the handle is marked as hidden.
Definition: SmartHandles.hh:325
OpenMesh::SmartHandleBoundaryPredicate
Base class for all smart handle types that contains status related methods.
Definition: SmartHandles.hh:102
OpenMesh::SmartHandleBoundaryPredicate::is_boundary
bool is_boundary() const
Returns true iff the handle is boundary.
Definition: SmartHandles.hh:341
OpenMesh::SmartVertexHandle
Smart version of VertexHandle contains a pointer to the corresponding mesh and allows easier access t...
Definition: SmartHandles.hh:110
OpenMesh::SmartVertexHandle::halfedge
SmartHalfedgeHandle halfedge() const
Returns an outgoing halfedge.
Definition: SmartHandles.hh:354
OpenMesh::SmartVertexHandle::out
SmartHalfedgeHandle out() const
Returns an outgoing halfedge.
Definition: SmartHandles.hh:348
OpenMesh::SmartVertexHandle::is_manifold
bool is_manifold() const
Returns true iff (the mesh at) the vertex is two-manifold ?
Definition: SmartHandles.hh:370
OpenMesh::SmartVertexHandle::in
SmartHalfedgeHandle in() const
Returns an incoming halfedge.
Definition: SmartHandles.hh:359
OpenMesh::SmartVertexHandle::valence
uint valence() const
Returns valence of the vertex.
Definition: SmartHandles.hh:364
OpenMesh::SmartHalfedgeHandle
Definition: SmartHandles.hh:170
OpenMesh::SmartHalfedgeHandle::face
SmartFaceHandle face() const
Returns incident face of halfedge.
Definition: SmartHandles.hh:412
OpenMesh::SmartHalfedgeHandle::from
SmartVertexHandle from() const
Returns vertex at start of halfedge.
Definition: SmartHandles.hh:400
OpenMesh::SmartHalfedgeHandle::next
SmartHalfedgeHandle next() const
Returns next halfedge handle.
Definition: SmartHandles.hh:376
OpenMesh::SmartHalfedgeHandle::prev
SmartHalfedgeHandle prev() const
Returns previous halfedge handle.
Definition: SmartHandles.hh:382
OpenMesh::SmartHalfedgeHandle::edge
SmartEdgeHandle edge() const
Returns incident edge of halfedge.
Definition: SmartHandles.hh:406
OpenMesh::SmartHalfedgeHandle::opp
SmartHalfedgeHandle opp() const
Returns opposite halfedge handle.
Definition: SmartHandles.hh:388
OpenMesh::SmartHalfedgeHandle::to
SmartVertexHandle to() const
Returns vertex pointed to by halfedge.
Definition: SmartHandles.hh:394
OpenMesh::SmartEdgeHandle
Definition: SmartHandles.hh:197
OpenMesh::SmartEdgeHandle::v
SmartVertexHandle v(unsigned int _i) const
Shorthand for vertex()
Definition: SmartHandles.hh:444
OpenMesh::SmartEdgeHandle::v1
SmartVertexHandle v1() const
Shorthand for vertex(1)
Definition: SmartHandles.hh:454
OpenMesh::SmartEdgeHandle::h
SmartHalfedgeHandle h(unsigned int _i) const
Shorthand for halfedge()
Definition: SmartHandles.hh:424
OpenMesh::SmartEdgeHandle::h1
SmartHalfedgeHandle h1() const
Shorthand for halfedge(1)
Definition: SmartHandles.hh:434
OpenMesh::SmartEdgeHandle::vertex
SmartVertexHandle vertex(unsigned int _i) const
Returns one of the two incident vertices of the edge.
Definition: SmartHandles.hh:439
OpenMesh::SmartEdgeHandle::v0
SmartVertexHandle v0() const
Shorthand for vertex(0)
Definition: SmartHandles.hh:449
OpenMesh::SmartEdgeHandle::halfedge
SmartHalfedgeHandle halfedge(unsigned int _i) const
Returns one of the two halfedges of the edge.
Definition: SmartHandles.hh:418
OpenMesh::SmartEdgeHandle::h0
SmartHalfedgeHandle h0() const
Shorthand for halfedge(0)
Definition: SmartHandles.hh:429
OpenMesh::SmartFaceHandle
Definition: SmartHandles.hh:219
OpenMesh::SmartFaceHandle::valence
uint valence() const
Returns the valence of the face.
Definition: SmartHandles.hh:465
OpenMesh::SmartFaceHandle::halfedge
SmartHalfedgeHandle halfedge() const
Returns one of the halfedges of the face.
Definition: SmartHandles.hh:459
OpenMesh::SmartHandle
Definition: SmartHandles.hh:276