50#error this file is for documentation purposes only
75template <
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;
89 typedef typename FinalMeshItems::Normal
Normal;
91 typedef typename FinalMeshItems::TexCoord
TexCoord;
464 const std::string& _name =
"" );
476 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>
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
bool has_halfedge_colors() const
Is property available?
void set_color(FaceHandle _fh, const Color &_c)
Set color.
void request_vertex_texcoords2D()
Request property.
void set_halfedge_handle(FaceHandle _fh, HalfedgeHandle _heh)
Set one halfedge of the face.
void request_halfedge_texcoords3D()
Request property.
bool has_face_normals() const
Is property available?
HalfedgeHandle halfedge_handle(VertexHandle _vh) const
Get an outgoing halfedge of a given vertex.
const TexCoord2D & texcoord2D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
void request_halfedge_colors()
Request property.
void request_vertex_normals()
Request property.
void set_normal(HalfedgeHandle _heh, const Normal &_n)
Set normal of the to vertex of the given Halfedge (per face per vertex normals)
void release_halfedge_colors()
Remove property.
const Normal & normal(FaceHandle _fh) const
Get normal.
T & property(MPropHandleT< T > _ph)
Get value for item represented by the handle.
void set_point(Vertex &_v, const Point &_p)
Set the coordinate of a vertex.
size_t n_edges() const
Returns number of edges.
PropertyT< T > & property([VEHF]PropHandleT< T > _ph)
Get property.
const TexCoord2D & texcoord2D(VertexHandle _vh) const
Get texture coordinate.
FinalMeshItems::Scalar Scalar
Derive this type from the FinalMeshItems.
void request_halfedge_status()
Request property.
SomeIterator KernelFaceIter
This type depends on the container type in use.
void set_texcoord3D(HalfedgeHandle _hh, const TexCoord3D &_t)
Set texture coordinate of the to vertex of the given Halfedge (per face per vertex texcoords)
VertexHandle vertex_handle(unsigned int _i) const
Get the i'th item.
FinalMeshItems::Color Color
Derive this type from the FinalMeshItems.
HalfedgeHandle ccw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Counter-clockwise rotate the given halfedge around its from vertex.
const Normal & normal(HalfedgeHandle _heh) const
Get normal of the to vertex of the given Halfedge (per face per vertex normals)
KernelFaceIter faces_begin()
void release_halfedge_texcoords3D()
Remove property.
bool has_edge_colors() const
Is property available?
SomeIterator KernelConstVertexIter
This type depends on the container type in use.
void request_edge_status()
Request property.
KernelConstFaceIter faces_end() const
void release_vertex_colors()
Remove property.
const TexCoord3D & texcoord3D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
SomeIterator KernelEdgeIter
This type depends on the container type in use.
void remove_last_vertex()
void set_texcoord2D(HalfedgeHandle _hh, const TexCoord2D &_t)
Set texture coordinate of the to vertex of the given Halfedge (per face per vertex texcoords)
SomeIterator KernelConstEdgeIter
This type depends on the container type in use.
void release_face_texture_index()
Remove property.
const StatusInfo & status(FaceHandle _vh) const
Get status.
void release_face_normals()
Remove property.
bool vertices_empty() const
Is the vertex container empty?
FinalMeshItems::EdgeHandle EdgeHandle
Derive this type from the FinalMeshItems.
void release_vertex_normals()
Remove property.
void set_color(VertexHandle _vh, const Color &_c)
Set color.
FaceHandle face_handle(unsigned int _i) const
Get the i'th item.
void request_face_colors()
Request property.
const Color & color(HalfedgeHandle _heh) const
Get color.
void release_halfedge_texcoords2D()
Remove property.
const Edge & edge(EdgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
void request_face_texture_index()
Request property.
KernelConstFaceIter faces_begin() const
HalfedgeHandle new_edge(VertexHandle _start_vertex_handle, VertexHandle _end_vertex_handle)
void set_texcoord1D(VertexHandle _vh, const TexCoord1D &_t)
Set texture coordinate.
KernelVertexIter vertices_end()
void request_halfedge_texcoords2D()
Request property.
const Color & color(VertexHandle _vh) const
Get color.
void request_vertex_status()
Request property.
HalfedgeHandle halfedge_handle(EdgeHandle _eh, unsigned int _i) const
Get the first or second halfedge of the given edge.
FinalMeshItems::TexCoord TexCoord
Derive this type from the FinalMeshItems.
void add_property([VEHFM]PropHandleT< T > &_ph, const std::string &_name="")
const Point & point(VertexHandle _vh) const
Get the coordinate of a vertex.
KernelT(const KernelT &_rhs)
copy constructor: not used
HalfedgeHandle halfedge_handle(FaceHandle _fh) const
Get a halfedge belonging to the face.
void request_vertex_colors()
Request property.
VertexHandle new_vertex(const Vertex &_v)
T & property(HPropHandleT< T > _ph, HalfedgeHandle _vh)
Get value for item represented by the handle.
const PropertyT< T > & property([VEHF]PropHandleT< T > _ph) const
Get property.
EdgeHandle edge_handle(HalfedgeHandle _heh) const
Get the edge the current halfedge it contained in.
const T & property(HPropHandleT< T > _ph, HalfedgeHandle _vh) const
Get value for item represented by the handle.
T & property(EPropHandleT< T > _ph, EdgeHandle _vh)
Get value for item represented by the handle.
const StatusInfo & status(HalfedgeHandle _vh) const
Get status.
bool get_property_handle([VEHFM]PropHandleT< T > &ph, const std::string &_n) const
Get property handle by name.
VertexHandle new_vertex(const Point &_p)
void release_vertex_texcoords1D()
Remove property.
StatusInfo & status(VertexHandle _vh)
Get status.
const Halfedge & halfedge(HalfedgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
SomeIterator KernelConstFaceIter
This type depends on the container type in use.
FaceHandle face_handle(HalfedgeHandle _heh) const
void release_vertex_status()
Remove property.
HalfedgeHandle halfedge_handle(unsigned int _i) const
Get the i'th item.
StatusInfo & status(FaceHandle _vh)
Get status.
HalfedgeHandle handle(const Halfedge &_he) const
Translate item to handle.
KernelConstVertexIter vertices_begin() const
FinalMeshItems::Halfedge Halfedge
Derive this type from the FinalMeshItems.
const StatusInfo & status(VertexHandle _vh) const
Get status.
void garbage_collection()
void set_halfedge_handle(VertexHandle _vh, HalfedgeHandle _heh)
Set the outgoing halfedge handle of a given vertex.
void release_edge_colors()
Remove property.
bool has_face_texture_index() const
Is property available?
FaceHandle handle(const Face &_f) const
Translate item to handle.
size_t n_vertices() const
Returns number of vertices.
KernelT()
Default constructor.
SomeIterator KernelVertexIter
This type depends on the container type in use.
FaceHandle new_face(const Face &_f)
KernelFaceIter faces_end()
bool has_vertex_colors() const
Is property available?
bool has_halfedge_status() const
Is property available?
KernelConstEdgeIter edges_begin() const
HalfedgeHandle cw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Clockwise rotate the given halfedge around its from vertex.
KernelT & operator=(const KernelT &_rhs)
Assignment operator.
const TexCoord1D & texcoord1D(VertexHandle _vh) const
Get texture coordinate.
void release_face_status()
Remove property.
StatusInfo & status(EdgeHandle _vh)
Get status.
KernelConstVertexIter vertices_end() const
VertexHandle new_vertex()
VertexHandle to_vertex_handle(HalfedgeHandle _heh) const
Get the vertex the halfedge points to.
KernelEdgeIter edges_begin()
void request_vertex_texcoords1D()
Request property.
void set_texcoord1D(HalfedgeHandle _hh, const TexCoord1D &_t)
Set texture coordinate of the to vertex of the given Halfedge (per face per vertex texcoords)
void release_halfedge_normals()
Remove property.
void request_vertex_texcoords3D()
Request property.
T & property(VPropHandleT< T > _ph, VertexHandle _vh)
Get value for item represented by the handle.
KernelConstEdgeIter edges_end() const
bool has_vertex_normals() const
Is property available?
EdgeHandle edge_handle(unsigned int _i) const
Get the i'th item.
bool has_face_status() const
Is property available?
void release_face_colors()
Remove property.
Halfedge & halfedge(HalfedgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
StatusInfo & status(HalfedgeHandle _vh)
Get status.
T & property(FPropHandleT< T > _ph, FaceHandle _vh)
Get value for item represented by the handle.
PropertyT< T > & mproperty(MPropHandleT< T > _ph)
Get property.
bool has_halfedge_normals() const
Is property available?
void release_edge_status()
Remove property.
void set_vertex_handle(HalfedgeHandle _heh, VertexHandle _vh)
Set the to-vertex-handle of the halfedge.
void set_face_handle(HalfedgeHandle _heh, FaceHandle _fh)
Set the face the halfedge belongs to.
bool has_halfedge_texcoords1D() const
Is property available?
FinalMeshItems::FaceHandle FaceHandle
Derive this type from the FinalMeshItems.
void set_next_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _nheh)
bool has_edge_status() const
Is property available?
const TexCoord3D & texcoord3D(VertexHandle _vh) const
Get texture coordinate.
void set_normal(FaceHandle _fh, const Normal &_n)
Set normal.
FinalMeshItems::HalfedgeHandle HalfedgeHandle
Derive this type from the FinalMeshItems.
void set_point(VertexHandle _vh, const Point &_p)
Set the coordinate of a vertex.
bool edges_empty() const
Is the edge container empty?
Point & point(VertexHandle _vh)
Convenience function.
void release_halfedge_status()
Remove property.
void request_face_status()
Request property.
void set_normal(VertexHandle _vh, const Normal &_n)
Set normal.
void release_halfedge_texcoords1D()
Remove property.
void reserve(size_t _n_vertices, size_t _n_edges, size_t _n_faces)
KernelVertexIter vertices_begin()
VertexHandle handle(const Vertex &_v) const
Translate item to handle.
bool has_face_colors() const
Is property available?
Vertex & vertex(VertexHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
const Point & point(const Vertex &_v) const
Get the coordinate of a vertex.
bool has_halfedge_texcoords3D() const
Is property available?
const Vertex & vertex(VertexHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
const Face & face(FaceHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
const T & property(VPropHandleT< T > _ph, VertexHandle _vh) const
Get value for item represented by the handle.
void release_vertex_texcoords3D()
Remove property.
void set_color(EdgeHandle _eh, const Color &_c)
Set color.
HalfedgeHandle next_halfedge_handle(HalfedgeHandle _heh) const
Get the next halfedge handle.
EdgeHandle handle(const Edge &_e) const
Translate item to handle.
bool has_vertex_texcoords1D() const
Is property available?
bool has_vertex_status() const
Is property available?
FinalMeshItems::VertexHandle VertexHandle
Derive this type from the FinalMeshItems.
bool halfedges_empty() const
Is the halfedge container empty (should be the same as edges_empty()).
const T & property(EPropHandleT< T > _ph, EdgeHandle _vh) const
Get value for item represented by the handle.
bool has_vertex_texcoords2D() const
Is property available?
void remove_property([VEHFM]PropHandleT< T > &)
Remove property.
const Color & color(EdgeHandle _eh) const
Get color.
void set_texcoord2D(VertexHandle _vh, const TexCoord2D &_t)
Set texture coordinate.
void set_color(HalfedgeHandle _heh, const Color &_c)
Set color.
const StatusInfo & status(EdgeHandle _vh) const
Get status.
Face & face(FaceHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
FinalMeshItems::Point Point
Derive this type from the FinalMeshItems.
HalfedgeHandle opposite_halfedge_handle(HalfedgeHandle _heh) const
Get the opposite halfedge.
FinalMeshItems::Normal Normal
Derive this type from the FinalMeshItems.
void release_vertex_texcoords2D()
Remove property.
bool faces_empty() const
Is the face container empty?
void request_halfedge_normals()
Request property.
bool has_halfedge_texcoords2D() const
Is property available?
FinalMeshItems::Edge Edge
Derive this type from the FinalMeshItems.
Edge & edge(EdgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
size_t n_faces() const
Returns number of faces.
const T & property(FPropHandleT< T > _ph, FaceHandle _vh) const
Get value for item represented by the handle.
VertexHandle from_vertex_handle(HalfedgeHandle _heh) const
const Normal & normal(VertexHandle _vh) const
Get normal.
FinalMeshItems::Vertex Vertex
Derive this type from the FinalMeshItems.
KernelEdgeIter edges_end()
void request_edge_colors()
Request property.
const TexCoord1D & texcoord1D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
void request_halfedge_texcoords1D()
Request property.
size_t n_halfedges() const
Returns number of halfedges (should be 2*n_edges())
FinalMeshItems::Face Face
Derive this type from the FinalMeshItems.
const PropertyT< T > & mproperty(MPropHandleT< T > _ph) const
Get property.
const Color & color(FaceHandle _fh) const
Get color.
void request_face_normals()
Request property.
bool has_vertex_texcoords3D() const
Is property available?
const T & property(MPropHandleT< T > _ph) const
Get value for item represented by the handle.
void set_texcoord3D(VertexHandle _vh, const TexCoord3D &_t)
Set texture coordinate.
Default property class for any type T.
@ TexCoord2D
Add 2D texture coordinates (vertices, halfedges)
@ TexCoord1D
Add 1D texture coordinates (vertices, halfedges)
@ TexCoord3D
Add 3D texture coordinates (vertices, halfedges)
@ Color
Add colors to mesh item (vertices/faces/edges)