Many mesh representations of CGLA, e.g. CGAL::Exact_predicate_inexact_construction_kernel and CGAL::Cartesian<double> have compatible kernels (i.e. kernels exposing the same geometry related traits). Hence their respective Geometry_traits template specializations will define exactly the same code. In order to avoid code replication this Geometry_traits_for_cgal class "factorizes" the code that will be shared by CGAL meshes sharing such a common kernel structure. The various CGAL meshes needing simply inherit from this class like.
More...
#include <Geometry_traits_cgal_common.h>
|
static Scalar | get_x (const Point &p) |
|
static Scalar | get_y (const Point &p) |
|
static Scalar | get_z (const Point &p) |
|
static Vector | unit_normal (const Point &p1, const Point &p2, const Point &p3) |
|
static Vector | normal (const Point &p1, const Point &p2, const Point &p3) |
|
static Scalar | dot_product (const Vector &v1, const Vector &v2) |
|
static Vector | cross_product (const Vector &v1, const Vector &v2) |
|
static Scalar | length2 (const Vector &v) |
|
static Scalar | length (const Vector &v) |
|
static Scalar | length (const Point &p1, const Point &p2) |
|
static Vector | normalize (const Vector &v) |
|
static Vector | add_v (const Vector &v1, const Vector &v2) |
|
static Point | add_pv (const Point &p, const Vector &v) |
|
static Point | sub_pv (const Point &p, const Vector &v) |
|
static Vector | sub_p (const Point &p1, const Point &p2) |
|
static Vector | sub_v (const Vector &v1, const Vector &v2) |
|
static Vector | scalar_mult (const Vector &v, Scalar s) |
|
template<typename MeshT, typename KernelT>
class FEVV::Geometry_traits_for_cgal< MeshT, KernelT >
Many mesh representations of CGLA, e.g. CGAL::Exact_predicate_inexact_construction_kernel and CGAL::Cartesian<double> have compatible kernels (i.e. kernels exposing the same geometry related traits). Hence their respective Geometry_traits template specializations will define exactly the same code. In order to avoid code replication this Geometry_traits_for_cgal class "factorizes" the code that will be shared by CGAL meshes sharing such a common kernel structure. The various CGAL meshes needing simply inherit from this class like.
Definition at line 44 of file Geometry_traits_cgal_common.h.
◆ Kernel
template<typename MeshT , typename KernelT >
◆ Mesh
template<typename MeshT , typename KernelT >
◆ Point
template<typename MeshT , typename KernelT >
◆ Scalar
template<typename MeshT , typename KernelT >
◆ Self
template<typename MeshT , typename KernelT >
◆ Vector
template<typename MeshT , typename KernelT >
◆ Geometry_traits_for_cgal()
template<typename MeshT , typename KernelT >
◆ add_pv()
template<typename MeshT , typename KernelT >
◆ add_v()
template<typename MeshT , typename KernelT >
◆ cross_product()
template<typename MeshT , typename KernelT >
◆ dot_product()
template<typename MeshT , typename KernelT >
◆ get_x()
template<typename MeshT , typename KernelT >
◆ get_y()
template<typename MeshT , typename KernelT >
◆ get_z()
template<typename MeshT , typename KernelT >
◆ length() [1/2]
template<typename MeshT , typename KernelT >
◆ length() [2/2]
template<typename MeshT , typename KernelT >
◆ length2()
template<typename MeshT , typename KernelT >
◆ normal()
template<typename MeshT , typename KernelT >
◆ normalize()
template<typename MeshT , typename KernelT >
◆ scalar_mult()
template<typename MeshT , typename KernelT >
◆ sub_p()
template<typename MeshT , typename KernelT >
◆ sub_pv()
template<typename MeshT , typename KernelT >
◆ sub_v()
template<typename MeshT , typename KernelT >
◆ unit_normal()
template<typename MeshT , typename KernelT >
◆ m_mesh
template<typename MeshT , typename KernelT >
The documentation for this class was generated from the following file: