mirror of https://github.com/CGAL/cgal
Update diagonalize traits inclusions + deprecation warnings
This commit is contained in:
parent
41d554fe58
commit
7048b5cb17
|
|
@ -22,7 +22,6 @@
|
||||||
#include <CGAL/Search_traits_3.h>
|
#include <CGAL/Search_traits_3.h>
|
||||||
#include <CGAL/squared_distance_3.h>
|
#include <CGAL/squared_distance_3.h>
|
||||||
#include <CGAL/Orthogonal_k_neighbor_search.h>
|
#include <CGAL/Orthogonal_k_neighbor_search.h>
|
||||||
#include <CGAL/Default_diagonalize_traits.h>
|
|
||||||
#include <CGAL/compute_average_spacing.h>
|
#include <CGAL/compute_average_spacing.h>
|
||||||
#include <CGAL/grid_simplify_point_set.h>
|
#include <CGAL/grid_simplify_point_set.h>
|
||||||
#include <CGAL/jet_smooth_point_set.h>
|
#include <CGAL/jet_smooth_point_set.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// Example program for the linear_least_square_fitting function on a set of circles in 2D
|
// Example program for the linear_least_square_fitting function on a set of circles in 2D
|
||||||
|
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// Example program for the linear_least_square_fitting function on set of cuboids in 3D
|
// Example program for the linear_least_square_fitting function on set of cuboids in 3D
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/linear_least_squares_fitting_3.h>
|
#include <CGAL/linear_least_squares_fitting_3.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/algorithm.h>
|
#include <CGAL/algorithm.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
// Example program for the linear_least_square_fitting function
|
// Example program for the linear_least_square_fitting function
|
||||||
|
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/linear_least_squares_fitting_3.h>
|
#include <CGAL/linear_least_squares_fitting_3.h>
|
||||||
#ifdef CGAL_EIGEN3_ENABLED
|
#ifdef CGAL_EIGEN3_ENABLED
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// Example program for the linear_least_square_fitting function
|
// Example program for the linear_least_square_fitting function
|
||||||
// on a set of tetrahedra in 3D
|
// on a set of tetrahedra in 3D
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// test for the linear_least_square_fitting() functions.
|
// test for the linear_least_square_fitting() functions.
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/algorithm.h>
|
#include <CGAL/algorithm.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
// Example program for the linear_least_square_fitting function on set of triangles in 3D
|
// Example program for the linear_least_square_fitting function on set of triangles in 3D
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/linear_least_squares_fitting_3.h>
|
#include <CGAL/linear_least_squares_fitting_3.h>
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,8 @@
|
||||||
|
|
||||||
## Classes ##
|
## Classes ##
|
||||||
|
|
||||||
- `CGAL::Diagonalize_traits`
|
|
||||||
- `CGAL::Eigen_solver_traits`
|
- `CGAL::Eigen_solver_traits`
|
||||||
- `CGAL::Eigen_diagonalize_traits`
|
- `CGAL::Eigen_diagonalize_traits`
|
||||||
- `CGAL::Default_diagonalize_traits`
|
|
||||||
- `CGAL::Eigen_vector`
|
- `CGAL::Eigen_vector`
|
||||||
- `CGAL::Eigen_matrix`
|
- `CGAL::Eigen_matrix`
|
||||||
- `CGAL::Eigen_sparse_matrix`
|
- `CGAL::Eigen_sparse_matrix`
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,13 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#ifdef CGAL_EIGEN3_ENABLED
|
|
||||||
#include <CGAL/Eigen_diagonalize_traits.h>
|
#include <CGAL/Eigen_diagonalize_traits.h>
|
||||||
#else
|
|
||||||
#include <CGAL/Diagonalize_traits.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef double FT;
|
typedef double FT;
|
||||||
typedef CGAL::cpp11::array<FT, 6> Eigen_matrix;
|
typedef CGAL::cpp11::array<FT, 6> Eigen_matrix;
|
||||||
typedef CGAL::cpp11::array<FT, 3> Eigen_vector;
|
typedef CGAL::cpp11::array<FT, 3> Eigen_vector;
|
||||||
typedef CGAL::cpp11::array<FT, 9> Eigen_three_vectors;
|
typedef CGAL::cpp11::array<FT, 9> Eigen_three_vectors;
|
||||||
|
|
||||||
// If Eigen is enabled, use it, otherwise fallback to the internal model
|
|
||||||
#ifdef CGAL_EIGEN3_ENABLED
|
|
||||||
typedef CGAL::Eigen_diagonalize_traits<FT, 3> Diagonalize_traits;
|
typedef CGAL::Eigen_diagonalize_traits<FT, 3> Diagonalize_traits;
|
||||||
#else
|
|
||||||
typedef CGAL::Diagonalize_traits<FT, 3> Diagonalize_traits;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue