Developer Documentation
|
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_ |
Definition at line 48 of file GeometryKernel.hh.
|
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.