MeshItems.hh
/* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* Department of Computer Graphics and Multimedia *
* All rights reserved. *
* www.openmesh.org *
* *
*---------------------------------------------------------------------------*
* This file is part of OpenMesh. *
*---------------------------------------------------------------------------*
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions *
* are met: *
* *
* 1. Redistributions of source code must retain the above copyright notice, *
* this list of conditions and the following disclaimer. *
* *
* 2. Redistributions in binary form must reproduce the above copyright *
* notice, this list of conditions and the following disclaimer in the *
* documentation and/or other materials provided with the distribution. *
* *
* 3. Neither the name of the copyright holder nor the names of its *
* contributors may be used to endorse or promote products derived from *
* this software without specific prior written permission. *
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
* *
* ========================================================================= */
/*===========================================================================*\
* *
* $Revision$ *
* $Date$ *
* *
\*===========================================================================*/
//=============================================================================
//
// Mesh Items Concept
//
//=============================================================================
#error this file is for documentation purposes only
//== NAMESPACES ===============================================================
namespace OpenMesh {
namespace Concepts {
//== CLASS DEFINITION =========================================================
struct MeshItems {
template <class Refs_> class VertexT
{
public:
typedef Refs_ Refs;
VertexT();
HalfedgeHandle halfedge_handle() const;
void set_halfedge_handle(HalfedgeHandle _eh);
};
template <class Refs_> class HalfedgeT
{
public:
typedef Refs_ Refs;
VertexHandle vertex_handle() const;
void set_vertex_handle(VertexHandle _vh);
FaceHandle face_handle() const;
void set_face_handle(FaceHandle _fh);
HalfedgeHandle next_halfedge_handle() const;
void set_next_halfedge_handle(HalfedgeHandle _eh);
};
template <class Refs_> class EdgeT
{
public:
typedef Refs_ Refs;
Halfedge halfedges[2];
};
template <class Refs_> class FaceT
{
public:
typedef Refs_ Refs;
typedef GenProg::TagTrue IsTriangle;
static bool is_triangle();
unsigned char n_vertices() const;
void set_n_vertices(unsigned char _n);
HalfedgeHandle halfedge_handle() const;
void set_halfedge_handle(HalfedgeHandle _eh);
};
};
//=============================================================================
} // namespace Concepts
} // namespace OpenMesh
//=============================================================================
OpenMesh::HalfedgeHandle
Handle for a halfedge entity.
Definition: Handles.hh:132
OpenMesh::Concepts::MeshItems::VertexT
Interface for the internal vertex type.
Definition: MeshItems.hh:86
OpenMesh::Concepts::MeshItems::HalfedgeT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:117
OpenMesh::FaceHandle
Handle for a face entity.
Definition: Handles.hh:146
OpenMesh::Concepts::MeshItems
The mesh items class encapsulates the types VertexT, HalfedgeT, EdgeT, and FaceT. ...
Definition: MeshItems.hh:76
OpenMesh::Concepts::MeshItems::FaceT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:181
OpenMesh::Concepts::MeshItems::VertexT::halfedge_handle
HalfedgeHandle halfedge_handle() const
Get an outgoing halfedge.
OpenMesh::Concepts::MeshItems::HalfedgeT
Interface for the internal halfedge type.
Definition: MeshItems.hh:112
OpenMesh::Concepts::MeshItems::VertexT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:91
OpenMesh
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
OpenMesh::Concepts::MeshItems::EdgeT::Refs
Refs_ Refs
Re-export the template argument Refs. This must be done!
Definition: MeshItems.hh:159
OpenMesh::Concepts::MeshItems::VertexT::VertexT
VertexT()
Default constructor.
OpenMesh::Concepts::MeshItems::VertexT::set_halfedge_handle
void set_halfedge_handle(HalfedgeHandle _eh)
Set the outgoing halfedge link.
OpenMesh::Concepts::MeshItems::FaceT
Interface for the internal face type.
Definition: MeshItems.hh:176
OpenMesh::VertexHandle
Handle for a vertex entity.
Definition: Handles.hh:125
OpenMesh::Concepts::MeshItems::EdgeT
Interface for the internal edge type.
Definition: MeshItems.hh:154
OpenMesh::Concepts::MeshItems::FaceT::IsTriangle
GenProg::TagTrue IsTriangle
Compile-time-tag: is this face a triangle? Should be typedef&#39;ed to either GenProg::TagTrue or GenProg...
Definition: MeshItems.hh:185