 |
OpenMesh
|
58 #error this file is for documentation purposes only
83 template <
class FinalMeshItems>
class KernelT
91 typedef typename FinalMeshItems::Vertex
Vertex;
92 typedef typename FinalMeshItems::Halfedge
Halfedge;
93 typedef typename FinalMeshItems::Edge
Edge;
94 typedef typename FinalMeshItems::Face
Face;
95 typedef typename FinalMeshItems::Point
Point;
96 typedef typename FinalMeshItems::Scalar
Scalar;
99 typedef typename FinalMeshItems::TexCoord
TexCoord;
469 template <
typename T>
void add_property( [VEHFM]PropHandleT<T>& _ph,
472 const std::string& _name =
"" );
483 template <
typename T>
501 template <
typename T>
503 template <
typename T>
506 template <
typename T>
508 template <
typename T>
511 template <
typename T>
513 template <
typename T>
516 template <
typename T>
518 template <
typename T>
521 template <
typename T>
523 template <
typename T>
void set_color(HalfedgeHandle _heh, const Color &_c)
Set color.
bool has_halfedge_normals() const
Is property available?
void request_face_normals()
Request property.
void request_vertex_texcoords3D()
Request property.
const Face & face(FaceHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:158
const T & property(FPropHandleT< T > _ph, FaceHandle _vh) const
Get value for item represented by the handle.
SomeIterator KernelFaceIter
This type depends on the container type in use.
Definition: MeshKernel.hh:115
KernelConstEdgeIter edges_begin() const
Kernel item iterator.
void release_vertex_status()
Remove property.
@ TexCoord3D
Add 3D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:93
bool has_face_normals() const
Is property available?
void set_texcoord2D(VertexHandle _vh, const TexCoord2D &_t)
Set texture coordinate.
void set_normal(FaceHandle _fh, const Normal &_n)
Set normal.
void request_vertex_normals()
Request property.
Handle for a vertex entity.
Definition: Handles.hh:126
const Color & color(HalfedgeHandle _heh) const
Get color.
bool has_halfedge_texcoords3D() const
Is property available?
const Color & color(VertexHandle _vh) const
Get color.
void remove_last_face()
Remove the last face imidiately, i.e.
Definition: MeshKernel.hh:217
void release_face_colors()
Remove property.
bool has_vertex_texcoords3D() const
Is property available?
KernelVertexIter vertices_end()
Kernel item iterator.
const Edge & edge(EdgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:156
KernelEdgeIter edges_end()
Kernel item iterator.
void garbage_collection()
Remove all items that are marked as deleted from the corresponding containers.
EdgeHandle handle(const Edge &_e) const
Translate item to handle.
const PropertyT< T > & mproperty(MPropHandleT< T > _ph) const
Get property.
void release_face_texture_index()
Remove property.
SomeIterator KernelVertexIter
This type depends on the container type in use.
Definition: MeshKernel.hh:111
bool has_face_status() const
Is property available?
Definition: MeshKernel.hh:84
FaceHandle new_face(const Face &_f)
Adding a new face (copied from a _f).
HalfedgeHandle opposite_halfedge_handle(HalfedgeHandle _heh) const
Get the opposite halfedge.
void request_halfedge_texcoords1D()
Request property.
void request_halfedge_texcoords2D()
Request property.
VertexHandle new_vertex()
Add a new (default) vertex.
FinalMeshItems::VertexHandle VertexHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:100
Definition: Property.hh:516
HalfedgeHandle halfedge_handle(unsigned int _i) const
Get the i'th item.
bool has_vertex_texcoords2D() const
Is property available?
const TexCoord1D & texcoord1D(VertexHandle _vh) const
Get texture coordinate.
Halfedge & halfedge(HalfedgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:155
void set_texcoord3D(HalfedgeHandle _hh, const TexCoord3D &_t)
Set texture coordinate of the to vertex of the given Halfedge (per face per vertex texcoords)
const Normal & normal(VertexHandle _vh) const
Get normal.
const Color & color(FaceHandle _fh) const
Get color.
bool get_property_handle([VEHFM]PropHandleT< T > &ph, const std::string &_n) const
Get property handle by name.
FaceHandle handle(const Face &_f) const
Translate item to handle.
void request_vertex_status()
Request property.
VertexHandle new_vertex(const Vertex &_v)
Add a new vertex (copied from the given one).
FinalMeshItems::Vertex Vertex
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:91
const TexCoord1D & texcoord1D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
void set_texcoord1D(VertexHandle _vh, const TexCoord1D &_t)
Set texture coordinate.
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_vertex_normals() const
Is property available?
@ Color
Add colors to mesh item (vertices/faces/edges)
Definition: Attributes.hh:88
void set_texcoord2D(HalfedgeHandle _hh, const TexCoord2D &_t)
Set texture coordinate of the to vertex of the given Halfedge (per face per vertex texcoords)
void request_edge_colors()
Request property.
void clear()
Delete all items, i.e.
@ Normal
Add normals to mesh item (vertices/faces)
Definition: Attributes.hh:87
KernelConstFaceIter faces_end() const
Kernel item iterator.
size_t n_vertices() const
Returns number of vertices.
void set_vertex_handle(HalfedgeHandle _heh, VertexHandle _vh)
Set the to-vertex-handle of the halfedge.
void request_halfedge_normals()
Request property.
KernelFaceIter faces_end()
Kernel item iterator.
void set_color(EdgeHandle _eh, const Color &_c)
Set color.
void set_point(VertexHandle _vh, const Point &_p)
Set the coordinate of a vertex.
StatusInfo & status(FaceHandle _vh)
Get status.
void clean()
Delete all items, i.e.
void remove_last_vertex()
Remove the last vertex imidiately, i.e.
Definition: MeshKernel.hh:209
bool halfedges_empty() const
Is the halfedge container empty (should be the same as edges_empty()).
void set_halfedge_handle(FaceHandle _fh, HalfedgeHandle _heh)
Set one halfedge of the face.
HalfedgeHandle ccw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Counter-clockwise rotate the given halfedge around its from vertex.
HalfedgeHandle handle(const Halfedge &_he) const
Translate item to handle.
FinalMeshItems::Color Color
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:98
void release_halfedge_normals()
Remove property.
void set_color(FaceHandle _fh, const Color &_c)
Set color.
T & property(EPropHandleT< T > _ph, EdgeHandle _vh)
Get value for item represented by the handle.
SomeIterator KernelConstFaceIter
This type depends on the container type in use.
Definition: MeshKernel.hh:116
FaceHandle face_handle(unsigned int _i) const
Get the i'th item.
KernelConstVertexIter vertices_begin() const
Kernel item iterator.
HalfedgeHandle cw_rotated_halfedge_handle(HalfedgeHandle _heh) const
Clockwise rotate the given halfedge around its from vertex.
PropertyT< T > & property([VEHF]PropHandleT< T > _ph)
Get property.
const T & property(HPropHandleT< T > _ph, HalfedgeHandle _vh) const
Get value for item represented by the handle.
void release_vertex_texcoords1D()
Remove property.
void release_edge_colors()
Remove property.
bool has_edge_colors() const
Is property available?
const Vertex & vertex(VertexHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:152
size_t n_edges() const
Returns number of edges.
bool has_edge_status() const
Is property available?
void release_halfedge_status()
Remove property.
EdgeHandle edge_handle(unsigned int _i) const
Get the i'th item.
T & property(HPropHandleT< T > _ph, HalfedgeHandle _vh)
Get value for item represented by the handle.
FinalMeshItems::Scalar Scalar
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:96
@ TexCoord1D
Add 1D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:91
void release_vertex_texcoords3D()
Remove property.
const Halfedge & halfedge(HalfedgeHandle _h) const
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:154
FinalMeshItems::TexCoord TexCoord
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:99
Vertex & vertex(VertexHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:153
@ TexCoord2D
Add 2D texture coordinates (vertices, halfedges)
Definition: Attributes.hh:92
void set_halfedge_handle(VertexHandle _vh, HalfedgeHandle _heh)
Set the outgoing halfedge handle of a given vertex.
FinalMeshItems::Halfedge Halfedge
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:92
FinalMeshItems::FaceHandle FaceHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:103
bool has_face_colors() const
Is property available?
bool has_halfedge_colors() const
Is property available?
T & property(VPropHandleT< T > _ph, VertexHandle _vh)
Get value for item represented by the handle.
void set_next_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _nheh)
Set the next halfedge handle.
void set_face_handle(HalfedgeHandle _heh, FaceHandle _fh)
Set the face the halfedge belongs to.
const TexCoord2D & texcoord2D(VertexHandle _vh) const
Get texture coordinate.
SomeIterator KernelConstVertexIter
This type depends on the container type in use.
Definition: MeshKernel.hh:112
StatusInfo & status(VertexHandle _vh)
Get status.
bool has_halfedge_texcoords2D() const
Is property available?
void release_halfedge_texcoords1D()
Remove property.
const PropertyT< T > & property([VEHF]PropHandleT< T > _ph) const
Get property.
bool has_halfedge_texcoords1D() const
Is property available?
KernelVertexIter vertices_begin()
Kernel item iterator.
Definition: Property.hh:530
Point & point(VertexHandle _vh)
Convenience function.
bool vertices_empty() const
Is the vertex container empty?
const Point & point(VertexHandle _vh) const
Get the coordinate of a vertex.
bool has_vertex_texcoords1D() const
Is property available?
Edge & edge(EdgeHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:157
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
VertexHandle vertex_handle(unsigned int _i) const
Get the i'th item.
FinalMeshItems::Edge Edge
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:93
void release_vertex_normals()
Remove property.
void release_vertex_colors()
Remove property.
void reserve(size_t _n_vertices, size_t _n_edges, size_t _n_faces)
Reserve memory for vertices, edges, faces.
bool has_face_texture_index() const
Is property available?
void set_normal(VertexHandle _vh, const Normal &_n)
Set normal.
const StatusInfo & status(EdgeHandle _vh) const
Get status.
Definition: Property.hh:502
void request_vertex_texcoords1D()
Request property.
SomeIterator KernelConstEdgeIter
This type depends on the container type in use.
Definition: MeshKernel.hh:114
void request_vertex_texcoords2D()
Request property.
HalfedgeHandle next_halfedge_handle(HalfedgeHandle _heh) const
Get the next halfedge handle.
VertexHandle new_vertex(const Point &_p)
Add a new vertex with a given point coordinate.
void release_face_status()
Remove property.
KernelConstEdgeIter edges_end() const
Kernel item iterator.
SomeIterator KernelEdgeIter
This type depends on the container type in use.
Definition: MeshKernel.hh:113
void request_face_status()
Request property.
FinalMeshItems::HalfedgeHandle HalfedgeHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:101
void set_texcoord3D(VertexHandle _vh, const TexCoord3D &_t)
Set texture coordinate.
bool faces_empty() const
Is the face container empty?
void request_halfedge_texcoords3D()
Request property.
void request_halfedge_colors()
Request property.
VertexHandle to_vertex_handle(HalfedgeHandle _heh) const
Get the vertex the halfedge points to.
EdgeHandle edge_handle(HalfedgeHandle _heh) const
Get the edge the current halfedge it contained in.
T & property(MPropHandleT< T > _ph)
Get value for item represented by the handle.
bool has_halfedge_status() const
Is property available?
Face & face(FaceHandle _h)
Translate handle to item (see also OpenMesh::PolyMeshT::deref())
Definition: MeshKernel.hh:159
Default property class for any type T.
Definition: Property.hh:95
void request_face_colors()
Request property.
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
Get the previous halfedge of the given halfedge.
FaceHandle face_handle(HalfedgeHandle _heh) const
Get the face the halfedge belongs to.
VertexHandle from_vertex_handle(HalfedgeHandle _heh) const
Get the vertex the halfedge starts from (implemented as to-handle of the opposite halfedge,...
void remove_last_edge()
Remove the last edge imidiately, i.e.
Definition: MeshKernel.hh:213
KernelT()
Default constructor.
Definition: MeshKernel.hh:122
void release_face_normals()
Remove property.
const Normal & normal(HalfedgeHandle _heh) const
Get normal of the to vertex of the given Halfedge (per face per vertex normals)
KernelFaceIter faces_begin()
Kernel item iterator.
Definition: Property.hh:488
StatusInfo & status(HalfedgeHandle _vh)
Get status.
const TexCoord3D & texcoord3D(VertexHandle _vh) const
Get texture coordinate.
HalfedgeHandle new_edge(VertexHandle _start_vertex_handle, VertexHandle _end_vertex_handle)
Add a new edge from _start_vertex_handle to _end_vertex_handle.
bool has_vertex_colors() const
Is property available?
KernelConstVertexIter vertices_end() const
Kernel item iterator.
FinalMeshItems::Point Point
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:95
const Normal & normal(FaceHandle _fh) const
Get normal.
bool has_vertex_status() const
Is property available?
void release_halfedge_texcoords2D()
Remove property.
void set_point(Vertex &_v, const Point &_p)
Set the coordinate of a vertex.
FinalMeshItems::EdgeHandle EdgeHandle
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:102
KernelEdgeIter edges_begin()
Kernel item iterator.
size_t n_faces() const
Returns number of faces.
const TexCoord3D & texcoord3D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
void release_vertex_texcoords2D()
Remove property.
void release_halfedge_texcoords3D()
Remove property.
void release_halfedge_colors()
Remove property.
KernelT & operator=(const KernelT &_rhs)
Assignment operator.
const T & property(EPropHandleT< T > _ph, EdgeHandle _vh) const
Get value for item represented by the handle.
const StatusInfo & status(VertexHandle _vh) const
Get status.
const Color & color(EdgeHandle _eh) const
Get color.
const Point & point(const Vertex &_v) const
Get the coordinate of a vertex.
void set_color(VertexHandle _vh, const Color &_c)
Set color.
const StatusInfo & status(FaceHandle _vh) const
Get status.
size_t n_halfedges() const
Returns number of halfedges (should be 2*n_edges())
KernelConstFaceIter faces_begin() const
Kernel item iterator.
void request_halfedge_status()
Request property.
StatusInfo & status(EdgeHandle _vh)
Get status.
const StatusInfo & status(HalfedgeHandle _vh) const
Get status.
void add_property([VEHFM]PropHandleT< T > &_ph, const std::string &_name="")
Add property.
bool edges_empty() const
Is the edge container empty?
VertexHandle handle(const Vertex &_v) const
Translate item to handle.
void remove_property([VEHFM]PropHandleT< T > &)
Remove property.
FinalMeshItems::Normal Normal
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:97
const TexCoord2D & texcoord2D(HalfedgeHandle _hh) const
Get texture coordinate of the to vertex for the current face (per face per vertex texcoords)
void request_face_texture_index()
Request property.
void request_edge_status()
Request property.
const T & property(VPropHandleT< T > _ph, VertexHandle _vh) const
Get value for item represented by the handle.
void set_normal(HalfedgeHandle _heh, const Normal &_n)
Set normal of the to vertex of the given Halfedge (per face per vertex normals)
void request_vertex_colors()
Request property.
FaceHandle new_face()
Adding a new face.
Definition: Property.hh:544
void release_edge_status()
Remove 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)
FinalMeshItems::Face Face
Derive this type from the FinalMeshItems.
Definition: MeshKernel.hh:94
const T & property(MPropHandleT< T > _ph) const
Get value for item represented by the handle.
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.