Developer Documentation
OpenVolumeMesh::GeometryKernel< VecT, TopologyKernelT > Class Template Reference
Inheritance diagram for OpenVolumeMesh::GeometryKernel< VecT, TopologyKernelT >:
OpenVolumeMesh::TetrahedralGeometryKernel< VecT, TopologyKernelT >

Public Types

typedef VecT PointT
 
typedef TopologyKernelT KernelT
 

Public Member Functions

 GeometryKernel ()=default
 Constructor.
 
 ~GeometryKernel () override=default
 Destructor.
 
template<class OtherTopoKernel >
void assign (const GeometryKernel< VecT, OtherTopoKernel > *other)
 
VertexHandle add_vertex () override
 Override of empty add_vertex function.
 
VertexHandle add_vertex (const VecT &_p)
 Add a geometric point to the mesh.
 
void set_vertex (const VertexHandle &_vh, const VecT &_p)
 Set the coordinates of point _vh.
 
const VecT & vertex (const VertexHandle &_vh) const
 Get point _vh's coordinates.
 
VertexIter delete_vertex (const VertexHandle &_h) override
 
void collect_garbage () override
 
void swap_vertex_indices (VertexHandle _h1, VertexHandle _h2) override
 
void clear (bool _clearProps=true) override
 
PointT::value_type length (const HalfEdgeHandle &_heh) const
 
PointT::value_type length (const EdgeHandle &_eh) const
 
PointT vector (const HalfEdgeHandle &_heh) const
 
PointT vector (const EdgeHandle &_eh) const
 
PointT barycenter (const EdgeHandle &_eh) const
 
PointT barycenter (const FaceHandle &_fh) const
 
PointT barycenter (const CellHandle &_ch) const
 
PointT normal (const HalfFaceHandle &_hfh) const
 
void clone_vertices (std::vector< VecT > &_copy) const
 
void swap_vertices (std::vector< VecT > &_copy)
 

Protected Member Functions

void delete_multiple_vertices (const std::vector< bool > &_tag) override
 

Private Attributes

std::vector< VecT > vertices_
 

Detailed Description

template<class VecT, class TopologyKernelT = TopologyKernel>
class OpenVolumeMesh::GeometryKernel< VecT, TopologyKernelT >

Definition at line 48 of file GeometryKernel.hh.

Member Function Documentation

◆ normal()

template<class VecT, class TopologyKernelT = TopologyKernel>
PointT OpenVolumeMesh::GeometryKernel< VecT, TopologyKernelT >::normal ( const HalfFaceHandle _hfh) const
inline

Compute halfface normal assuming planarity (just uses first 2 edges) Note: NormalAttrib provides fast access to precomputed normals.

Definition at line 223 of file GeometryKernel.hh.


The documentation for this class was generated from the following file: