#include <CGAL/HDVF/Hdvf_traits_d.h>
template<typename K>
struct CGAL::Homological_discrete_vector_field::Hdvf_traits_d< K >
The class Hdvf_traits_d implements the HDVFTraits concept for dD data, using a geometric kernel K.
- Template Parameters
-
| K | a geometric traits class. Must be either Epick_d or Epeck_d with a fixed dimension. |
- Is model of
HDVFTraits
|
|
using | Dimension = Dimension_tag< K::Dimension::value > |
| |
|
typedef K | Kernel |
| |
|
typedef K::Point_d | Point |
| |
|
typedef K::Vector_d | Vector |
| |
|
typedef K::FT | FT |
| |
|
typedef CGAL::Bbox_d< Dimension > | Bbox |
| |
|
typedef Exact_predicates_inexact_constructions_kernel::Point_3 | Point3 |
| |
|
| static std::function< typename Exact_predicates_inexact_constructions_kernel::Point_3(const typename K::Point_d &)> | plane_projection_builder (typename K::Point_d p0, typename K::Vector_d d1, typename K::Vector_d d2, typename K::Vector_d d3) |
| | Builds a projector over an affine subspace of dimension 3.
|
| |
| static std::function< typename Exact_predicates_inexact_constructions_kernel::Point_3(const typename K::Point_d &)> | pca_frame_builder (const std::vector< typename K::Point_d > &pts) |
| | Builds a projector over the affine subspace of dimension 3 given by the principal components analysis of a set of points.
|
| |
◆ pca_frame_builder()
Builds a projector over the affine subspace of dimension 3 given by the principal components analysis of a set of points.
Builds the projector over the affine space generated by the barycenter of pts points and three principal directions.
- Parameters
-
- Returns
- The projector (performing dimension reduction) over the subspace of dimension 3 given by the PCA of the points.
◆ plane_projection_builder()
template<typename K >
| static std::function< typename Exact_predicates_inexact_constructions_kernel::Point_3(const typename K::Point_d &)> CGAL::Homological_discrete_vector_field::Hdvf_traits_d< K >::plane_projection_builder |
( |
typename K::Point_d |
p0, |
|
|
typename K::Vector_d |
d1, |
|
|
typename K::Vector_d |
d2, |
|
|
typename K::Vector_d |
d3 |
|
) |
| |
|
static |
Builds a projector over an affine subspace of dimension 3.
Builds the projector over the affine space generated by the point p0 and an orthonormal basis d1, d2 and d3.
- Parameters
-
| p0 | A Point_d contained in the affine subspace. |
| d1 | First direction of the subspace. |
| d2 | Second direction of the subspace. |
| d3 | Third direction of the subspace. |
- Returns
- The orthogonal projector of a
Point onto this affine subspace of dimension 3.
◆ default_projection
Initial value:=
[](const typename K::Point_d& p) { return typename Exact_predicates_inexact_constructions_kernel::Point_3(p[0], p[1], p[2]); }
Default projection operator.
Projects a dD point to its three first coordinates.
◆ to_point3
Converts a Point to a Point3 for VTK rendering.
By default, this function is the default projection. Update it to change the projection for VTK rendering.
- Parameters
-
| p | Constant reference over the projected point. |
- Returns
- The projected
Point3.