50 #error this file is for documentation purposes only
75 template <
class FinalMeshItems>
class KernelT
83 typedef typename FinalMeshItems::Vertex
Vertex;
84 typedef typename FinalMeshItems::Halfedge
Halfedge;
85 typedef typename FinalMeshItems::Edge
Edge;
86 typedef typename FinalMeshItems::Face
Face;
87 typedef typename FinalMeshItems::Point
Point;
88 typedef typename FinalMeshItems::Scalar
Scalar;
91 typedef typename FinalMeshItems::TexCoord
TexCoord;
136 void reserve(
unsigned int _n_vertices,
137 unsigned int _n_edges,
138 unsigned int _n_faces );
461 template <
typename T>
bool add_property( [VEHFM]PropHandleT<T>& _ph,
464 const std::string& _name =
"" );
475 template <
typename T>
493 template <
typename T>
495 template <
typename T>
498 template <
typename T>
500 template <
typename T>
503 template <
typename T>
505 template <
typename T>
508 template <
typename T>
510 template <
typename T>
513 template <
typename T>
515 template <
typename T>
SomeIterator KernelVertexIter
This type depends on the container type in use.
Definition: MeshKernel.hh:103
VertexHandle new_vertex()
Add a new (default) vertex.
SomeIterator KernelFaceIter
This type depends on the container type in use.
Definition: MeshKernel.hh:107
void request_vertex_texcoords3D()
Request property.
const Point & point(VertexHandle _vh) const
Get the coordinate of a vertex.
void set_point(VertexHandle _vh, const Point &_p)
Set the coordinate of a vertex.
bool has_edge_colors() const
Is property available?
FinalMeshItems::VertexHandle VertexHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:92
bool has_face_colors() const
Is property available?
void release_face_colors()
Remove property.
const TexCoord2D & texcoord2D(VertexHandle _vh) const
Get texture coordinate.
void clean()
Delete all items, i.e.
Add colors to mesh item (vertices/faces/edges)
Definition: Attributes.hh:81
bool has_vertex_texcoords3D() const
Is property available?
VertexHandle handle(const Vertex &_v) const
Translate item to handle.
bool edges_empty() const
Is the edge container empty?
void request_halfedge_colors()
Request property.
bool get_property_handle([VEHFM]PropHandleT< T > &ph, const std::string &_n) const
Get property handle by name.
void set_next_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _nheh)
Set the next halfedge handle.
void release_vertex_texcoords2D()
Remove property.
SomeIterator KernelConstFaceIter
This type depends on the container type in use.
Definition: MeshKernel.hh:108
void release_halfedge_status()
Remove property.
void set_texcoord3D(VertexHandle _vh, const TexCoord3D &_t)
Set texture coordinate.
bool has_vertex_texcoords2D() const
Is property available?
void request_vertex_texcoords1D()
Request property.
FaceHandle new_face()
Adding a new face.
Add 2D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:85
void request_vertex_colors()
Request property.
KernelVertexIter vertices_end()
Kernel item iterator.
void remove_last_vertex()
Remove the last vertex imidiately, i.e.
Definition: MeshKernel.hh:201
void release_vertex_texcoords3D()
Remove property.
void release_vertex_texcoords1D()
Remove property.
unsigned int n_halfedges() const
Returns number of halfedges (should be 2*n_edges())
void release_face_normals()
Remove property.
void set_texcoord2D(VertexHandle _vh, const TexCoord2D &_t)
Set texture coordinate.
VertexHandle to_vertex_handle(HalfedgeHandle _heh) const
Get the vertex the halfedge points to.
Handle for a halfedge entity.
Definition: Handles.hh:121
Add 1D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:84
void request_edge_status()
Request property.
void release_halfedge_texcoords1D()
Remove property.
void release_face_status()
Remove property.
bool faces_empty() const
Is the face container empty?
void set_vertex_handle(HalfedgeHandle _heh, VertexHandle _vh)
Set the to-vertex-handle of the halfedge.
const Color & color(VertexHandle _vh) const
Get color.
SomeIterator KernelEdgeIter
This type depends on the container type in use.
Definition: MeshKernel.hh:105
void request_face_status()
Request property.
Edge & edge(EdgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:149
bool has_face_normals() const
Is property available?
void release_vertex_status()
Remove property.
bool has_vertex_normals() const
Is property available?
bool has_vertex_status() const
Is property available?
const Face & face(FaceHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:150
bool has_halfedge_status() const
Is property available?
PropertyT< T > & property([VEHF]PropHandleT< T > _ph)
Get property.
FinalMeshItems::Edge Edge
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:85
bool halfedges_empty() const
Is the halfedge container empty (should be the same as edges_empty()).
void request_halfedge_texcoords1D()
Request property.
bool add_property([VEHFM]PropHandleT< T > &_ph, const std::string &_name="")
Add property.
void set_halfedge_handle(VertexHandle _vh, HalfedgeHandle _heh)
Set the outgoing halfedge handle of a given vertex.
bool has_halfedge_texcoords1D() const
Is property available?
KernelT & operator=(const KernelT &_rhs)
Assignment operator.
Handle for a edge entity.
Definition: Handles.hh:128
Halfedge & halfedge(HalfedgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:147
bool has_face_status() const
Is property available?
FinalMeshItems::HalfedgeHandle HalfedgeHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:93
FinalMeshItems::Halfedge Halfedge
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:84
void request_halfedge_status()
Request property.
SomeIterator KernelConstEdgeIter
This type depends on the container type in use.
Definition: MeshKernel.hh:106
bool vertices_empty() const
Is the vertex container empty?
PropertyT< T > & mproperty(MPropHandleT< T > _ph)
Get property.
Handle representing a mesh property.
Definition: Property.hh:532
void remove_last_face()
Remove the last face imidiately, i.e.
Definition: MeshKernel.hh:209
void release_edge_status()
Remove property.
FinalMeshItems::TexCoord TexCoord
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:91
FinalMeshItems::Scalar Scalar
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:88
void request_vertex_texcoords2D()
Request property.
void release_halfedge_texcoords3D()
Remove property.
const Normal & normal(VertexHandle _vh) const
Get normal.
void release_edge_colors()
Remove property.
This class describes the minimum interface a mesh kernel has to implement (because the resulting mesh...
Definition: MeshKernel.hh:75
bool has_vertex_texcoords1D() const
Is property available?
Default property class for any type T.
Definition: Property.hh:87
Handle representing an edge property.
Definition: Property.hh:504
KernelT()
Default constructor.
Definition: MeshKernel.hh:114
bool has_halfedge_texcoords3D() const
Is property available?
const TexCoord3D & texcoord3D(VertexHandle _vh) const
Get texture coordinate.
void release_halfedge_normals()
Remove property.
void request_halfedge_texcoords2D()
Request property.
bool has_edge_status() const
Is property available?
KernelFaceIter faces_begin()
Kernel item iterator.
void request_face_texture_index()
Request property.
Handle representing a face property.
Definition: Property.hh:518
FinalMeshItems::Face Face
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:86
void release_face_texture_index()
Remove property.
bool has_halfedge_colors() const
Is property available?
void release_halfedge_colors()
Remove property.
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
Get the previous halfedge of the given halfedge.
void set_color(VertexHandle _vh, const Color &_c)
Set color.
void request_vertex_status()
Request property.
void release_vertex_colors()
Remove property.
void request_halfedge_normals()
Request property.
void set_normal(VertexHandle _vh, const Normal &_n)
Set normal.
VertexHandle from_vertex_handle(HalfedgeHandle _heh) const
Get the vertex the halfedge starts from (implemented as to-handle of the opposite halfedge...
Handle for a face entity.
Definition: Handles.hh:135
FinalMeshItems::FaceHandle FaceHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:95
Add 3D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:86
FinalMeshItems::Normal Normal
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:89
FaceHandle face_handle(unsigned int _i) const
Get the i'th item.
KernelVertexIter vertices_begin()
Kernel item iterator.
void set_face_handle(HalfedgeHandle _heh, FaceHandle _fh)
Set the face the halfedge belongs to.
bool has_face_texture_index() const
Is property available?
void reserve(unsigned int _n_vertices, unsigned int _n_edges, unsigned int _n_faces)
Reserve memory for vertices, edges, faces.
HalfedgeHandle cw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Clockwise rotate the given halfedge around its from vertex.
Handle representing a halfedge property.
Definition: Property.hh:490
KernelEdgeIter edges_end()
Kernel item iterator.
HalfedgeHandle next_halfedge_handle(HalfedgeHandle _heh) const
Get the next halfedge handle.
EdgeHandle edge_handle(unsigned int _i) const
Get the i'th item.
Handle representing a vertex property.
Definition: Property.hh:476
void request_edge_colors()
Request property.
unsigned int n_faces() const
Returns number of faces.
void request_face_colors()
Request property.
FinalMeshItems::EdgeHandle EdgeHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:94
void clear()
Delete all items, i.e.
bool has_halfedge_texcoords2D() const
Is property available?
unsigned int n_vertices() const
Returns number of vertices.
FinalMeshItems::Point Point
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:87
Face & face(FaceHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:151
Vertex & vertex(VertexHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:145
void request_vertex_normals()
Request property.
Handle for a vertex entity.
Definition: Handles.hh:114
bool has_halfedge_normals() const
Is property available?
void set_texcoord1D(VertexHandle _vh, const TexCoord1D &_t)
Set texture coordinate.
FinalMeshItems::Color Color
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:90
const Edge & edge(EdgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:148
void release_halfedge_texcoords2D()
Remove property.
unsigned int n_edges() const
Returns number of edges.
const Vertex & vertex(VertexHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:144
VertexHandle vertex_handle(unsigned int _i) const
Get the i'th item.
const TexCoord1D & texcoord1D(VertexHandle _vh) const
Get texture coordinate.
void remove_property([VEHFM]PropHandleT< T > &)
Remove property.
void remove_last_edge()
Remove the last edge imidiately, i.e.
Definition: MeshKernel.hh:205
HalfedgeHandle opposite_halfedge_handle(HalfedgeHandle _heh) const
Get the opposite halfedge.
const Halfedge & halfedge(HalfedgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:146
const StatusInfo & status(VertexHandle _vh) const
Get status.
SomeIterator KernelConstVertexIter
This type depends on the container type in use.
Definition: MeshKernel.hh:104
bool has_vertex_colors() const
Is property available?
HalfedgeHandle ccw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Counter-clockwise rotate the given halfedge around its from vertex.
void garbage_collection()
Remove all items that are marked as deleted from the corresponding containers.
HalfedgeHandle new_edge(VertexHandle _start_vertex_handle, VertexHandle _end_vertex_handle)
Add a new edge from _start_vertex_handle to _end_vertex_handle.
HalfedgeHandle halfedge_handle(unsigned int _i) const
Get the i'th item.
FinalMeshItems::Vertex Vertex
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:83
void release_vertex_normals()
Remove property.
Add normals to mesh item (vertices/faces)
Definition: Attributes.hh:80
KernelFaceIter faces_end()
Kernel item iterator.
void request_halfedge_texcoords3D()
Request property.
void request_face_normals()
Request property.
KernelEdgeIter edges_begin()
Kernel item iterator.