Skip to content

Commit

Permalink
Add top down
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Aug 19, 2024
1 parent fe7c37b commit 63dd907
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NewKernel_d/include/CGAL/NewKernel_d/Kernel_d_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ template <class Base_> struct Kernel_d_interface : public Base_ {
typedef typename Construct_cartesian_const_iterator_d::result_type Cartesian_const_iterator_d;
typedef typename Get_functor<Base, Squared_distance_tag>::type Squared_distance_d;
typedef typename Get_functor<Base, Squared_length_tag>::type Squared_length_d;
typedef typename Get_functor<Base, ComputeBbox_tag>::type Compute_bbox_d;
typedef typename Get_functor<Base, Scalar_product_tag>::type Scalar_product_d;
typedef typename Get_functor<Base, Affine_rank_tag>::type Affine_rank_d;
typedef typename Get_functor<Base, Affinely_independent_tag>::type Affinely_independent_d;
Expand Down Expand Up @@ -259,6 +260,7 @@ template <class Base_> struct Kernel_d_interface : public Base_ {
Compute_squared_radius_smallest_orthogonal_sphere_d compute_squared_radius_smallest_orthogonal_sphere_d_object()const{ return Compute_squared_radius_smallest_orthogonal_sphere_d(*this); }
Squared_distance_d squared_distance_d_object()const{ return Squared_distance_d(*this); }
Squared_length_d squared_length_d_object()const{ return Squared_length_d(*this); }
Compute_bbox_d compute_bbox_d_object()const{ return Compute_bbox_d(*this); }
Scalar_product_d scalar_product_d_object()const{ return Scalar_product_d(*this); }
Center_of_sphere_d center_of_sphere_d_object()const{ return Center_of_sphere_d(*this); }
Construct_circumcenter_d construct_circumcenter_d_object()const{ return Construct_circumcenter_d(*this); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,13 @@ template<class R_> struct ConstructBbox : private Store_kernel<R_> {
typedef Point argument_type;
result_type operator()(Point const&a)const{
CI ci(this->kernel());
To_interval f;
To_interval<RT> f;
return result_type(a.dimension(), make_transforming_iterator(ci(a,Begin_tag()),f), make_transforming_iterator(ci(a,End_tag())), f);
}
};
}

CGAL_KD_DEFAULT_FUNCTOR(ConstructBbox_tag,(CartesianDKernelFunctors::ConstructBbox<K>),(Point_tag),(Construct_ttag<Point_cartesian_const_iterator_tag>));
// CGAL_KD_DEFAULT_FUNCTOR(ConstructBbox_tag,(CartesianDKernelFunctors::ConstructBbox<K>),(Point_tag),(Construct_ttag<Point_cartesian_const_iterator_tag>));


namespace CartesianDKernelFunctors {
Expand Down
2 changes: 2 additions & 0 deletions NewKernel_d/test/NewKernel_d/Epick_d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ void test2(){
typedef typename K1::Construct_weighted_point_d CWP;
typedef typename K1::Power_side_of_bounded_power_sphere_d PSBPS;
typedef typename K1::Compute_squared_radius_smallest_orthogonal_sphere_d CSRSOS;
typedef typename K1::Compute_bbox_d CB;
//typedef typename K1::Point_drop_weight_d PDW;
typedef CP PDW;
typedef typename K1::Compute_weight_d PW;
Expand All @@ -151,6 +152,7 @@ void test2(){
(2)
#endif
;
CB cb Kinit(compute_bbox_d_object);
CP cp Kinit(construct_point_d_object);
CV cv Kinit(construct_vector_d_object);
CCI ci Kinit(construct_cartesian_const_iterator_d_object);
Expand Down

0 comments on commit 63dd907

Please sign in to comment.