#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
|
| 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.
|
|
| static std::function< Point3(const Point &p)> | to_point3 |
| | Converts a Point to a Point3 for VTK rendering.
|
◆ 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>
| 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.
◆ to_point3
Converts a Point to a Point3 for VTK rendering.
By default, this function is set to default_projection (which maps \(\mathbb R^d\) to \(\mathbb R^3\) by projecting on the three first coordinates). Update it to change the projection for VTK rendering.
- Parameters
-
| p | Constant reference over the projected point. |
- Returns
- The projected Point3.