mirror of https://github.com/CGAL/cgal
Misc post-merge fixes
This commit is contained in:
parent
3b7a4ed21e
commit
06f862eee7
|
|
@ -16,9 +16,9 @@ struct My_orientation_2
|
||||||
typedef typename K::RT RT;
|
typedef typename K::RT RT;
|
||||||
typedef typename K::Point_2 Point_2;
|
typedef typename K::Point_2 Point_2;
|
||||||
|
|
||||||
typedef typename K::Orientation result_type;
|
typedef typename K::Orientation Orientation;
|
||||||
|
|
||||||
result_type
|
Orientation
|
||||||
operator()(const Point_2 &p, const Point_2 &q, const Point_2 &r) const
|
operator()(const Point_2 &p, const Point_2 &q, const Point_2 &r) const
|
||||||
{
|
{
|
||||||
RT prx = p.x() - r.x();
|
RT prx = p.x() - r.x();
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,6 @@ class Side_of_bounded_circle_3
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef Bounded_side result_type;
|
|
||||||
|
|
||||||
Bounded_side operator()(const Point &p, const Point &q,
|
Bounded_side operator()(const Point &p, const Point &q,
|
||||||
const Point &r, const Point &t) const
|
const Point &r, const Point &t) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -26,15 +26,15 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
class Power_side_of_oriented_power_circle_2:
|
class Power_side_of_oriented_power_circle_2:
|
||||||
public K_base::Power_side_of_oriented_power_circle_2
|
public K_base::Power_side_of_oriented_power_circle_2
|
||||||
{
|
{
|
||||||
|
typedef typename K_base::Oriented_side Oriented_side;
|
||||||
typedef typename K_base::Weighted_point_2 Weighted_point_2;
|
typedef typename K_base::Weighted_point_2 Weighted_point_2;
|
||||||
typedef typename K_base::FT FT;
|
typedef typename K_base::FT FT;
|
||||||
typedef typename K_base::Power_side_of_oriented_power_circle_2 Base;
|
typedef typename K_base::Power_side_of_oriented_power_circle_2 Base;
|
||||||
public:
|
|
||||||
typedef typename Base::result_type result_type;
|
|
||||||
|
|
||||||
|
public:
|
||||||
using Base::operator();
|
using Base::operator();
|
||||||
|
|
||||||
result_type operator() ( const Weighted_point_2 & p,
|
Oriented_side operator()(const Weighted_point_2 & p,
|
||||||
const Weighted_point_2 & q,
|
const Weighted_point_2 & q,
|
||||||
const Weighted_point_2 & r,
|
const Weighted_point_2 & r,
|
||||||
const Weighted_point_2 & t) const
|
const Weighted_point_2 & t) const
|
||||||
|
|
@ -64,7 +64,7 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
double drx = (rx - tx);
|
double drx = (rx - tx);
|
||||||
double dry = (ry - ty);
|
double dry = (ry - ty);
|
||||||
double drz = (((square( drx ) + square( dry )) - rwt) + twt);
|
double drz = (((square( drx ) + square( dry )) - rwt) + twt);
|
||||||
result_type int_tmp_result;
|
Oriented_side int_tmp_result;
|
||||||
double RT_tmp_result;
|
double RT_tmp_result;
|
||||||
double eps;
|
double eps;
|
||||||
RT_tmp_result = CGAL::determinant( dpx, dpy, dpz, dqx, dqy, dqz, drx, dry, drz );
|
RT_tmp_result = CGAL::determinant( dpx, dpy, dpz, dqx, dqy, dqz, drx, dry, drz );
|
||||||
|
|
@ -162,7 +162,7 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
result_type operator() ( const Weighted_point_2 & p,
|
Oriented_side operator()(const Weighted_point_2 & p,
|
||||||
const Weighted_point_2 & q,
|
const Weighted_point_2 & q,
|
||||||
const Weighted_point_2 & t) const
|
const Weighted_point_2 & t) const
|
||||||
{
|
{
|
||||||
|
|
@ -219,7 +219,7 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
double upper_bound_1;
|
double upper_bound_1;
|
||||||
if( (cmpx != 0) )
|
if( (cmpx != 0) )
|
||||||
{
|
{
|
||||||
result_type int_tmp_result;
|
Oriented_side int_tmp_result;
|
||||||
double RT_tmp_result;
|
double RT_tmp_result;
|
||||||
RT_tmp_result = CGAL::determinant( dpx, dpz, dqx, dqz );
|
RT_tmp_result = CGAL::determinant( dpx, dpz, dqx, dqz );
|
||||||
lower_bound_1 = max2;
|
lower_bound_1 = max2;
|
||||||
|
|
@ -265,11 +265,11 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return static_cast<result_type>(cmpx * int_tmp_result);
|
return static_cast<Oriented_side>(cmpx * int_tmp_result);
|
||||||
}
|
}
|
||||||
int cmpy;
|
int cmpy;
|
||||||
cmpy = ((py > qy) ? 1 : ((py < qy) ? -1 : 0));
|
cmpy = ((py > qy) ? 1 : ((py < qy) ? -1 : 0));
|
||||||
result_type int_tmp_result_FFWKCAA;
|
Oriented_side int_tmp_result_FFWKCAA;
|
||||||
double RT_tmp_result_k60Ocge = CGAL::determinant( dpy, dpz, dqy, dqz );
|
double RT_tmp_result_k60Ocge = CGAL::determinant( dpy, dpz, dqy, dqz );
|
||||||
lower_bound_1 = max4;
|
lower_bound_1 = max4;
|
||||||
upper_bound_1 = max4;
|
upper_bound_1 = max4;
|
||||||
|
|
@ -314,7 +314,7 @@ namespace CGAL { namespace internal { namespace Static_filters_predicates {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return static_cast<result_type>(cmpy * int_tmp_result_FFWKCAA);
|
return static_cast<Oriented_side>(cmpy * int_tmp_result_FFWKCAA);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ template < typename P >
|
||||||
struct Primitive_profiler
|
struct Primitive_profiler
|
||||||
: public P
|
: public P
|
||||||
{
|
{
|
||||||
typedef typename P::result_type result_type;
|
|
||||||
|
|
||||||
// #define CGAL_KERNEL_PROFILER CGAL_PROFILER(CGAL_PRETTY_FUNCTION);
|
// #define CGAL_KERNEL_PROFILER CGAL_PROFILER(CGAL_PRETTY_FUNCTION);
|
||||||
#define CGAL_KERNEL_PROFILER \
|
#define CGAL_KERNEL_PROFILER \
|
||||||
CGAL_PROFILER(typeid(static_cast<const P&>(*this)).name())
|
CGAL_PROFILER(typeid(static_cast<const P&>(*this)).name())
|
||||||
|
|
@ -35,7 +33,7 @@ struct Primitive_profiler
|
||||||
: P(p) {}
|
: P(p) {}
|
||||||
|
|
||||||
template <class ... A>
|
template <class ... A>
|
||||||
result_type
|
decltype(auto)
|
||||||
operator()(A&& ... a) const
|
operator()(A&& ... a) const
|
||||||
{
|
{
|
||||||
CGAL_KERNEL_PROFILER;
|
CGAL_KERNEL_PROFILER;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ struct Tetrahedron_Line_intersection_3
|
||||||
: public Tetrahedron_lines_intersection_3_base<K, typename K::Line_3, Tetrahedron_Line_intersection_3<K> >
|
: public Tetrahedron_lines_intersection_3_base<K, typename K::Line_3, Tetrahedron_Line_intersection_3<K> >
|
||||||
{
|
{
|
||||||
typedef Tetrahedron_lines_intersection_3_base<K, typename K::Line_3, Tetrahedron_Line_intersection_3<K> > Base;
|
typedef Tetrahedron_lines_intersection_3_base<K, typename K::Line_3, Tetrahedron_Line_intersection_3<K> > Base;
|
||||||
typedef typename Base::Result_type Result_type;
|
|
||||||
|
|
||||||
Tetrahedron_Line_intersection_3(const typename K::Tetrahedron_3& tet,
|
Tetrahedron_Line_intersection_3(const typename K::Tetrahedron_3& tet,
|
||||||
const typename K::Line_3& l)
|
const typename K::Line_3& l)
|
||||||
|
|
|
||||||
|
|
@ -2148,10 +2148,10 @@ namespace CommonKernelFunctors {
|
||||||
{
|
{
|
||||||
typedef typename K::Plane_3 Plane;
|
typedef typename K::Plane_3 Plane;
|
||||||
typedef typename K::Point_3 Point;
|
typedef typename K::Point_3 Point;
|
||||||
typename K::Construct_plane_3 construct_plane;
|
|
||||||
public:
|
|
||||||
typedef Point result_type;
|
|
||||||
|
|
||||||
|
typename K::Construct_plane_3 construct_plane;
|
||||||
|
|
||||||
|
public:
|
||||||
Point
|
Point
|
||||||
operator()(const Point& p1, const Point& q1, const Point& r1,
|
operator()(const Point& p1, const Point& q1, const Point& r1,
|
||||||
const Point& p2, const Point& q2, const Point& r2,
|
const Point& p2, const Point& q2, const Point& r2,
|
||||||
|
|
@ -2184,10 +2184,10 @@ namespace CommonKernelFunctors {
|
||||||
{
|
{
|
||||||
typedef typename K::Segment_3 Segment;
|
typedef typename K::Segment_3 Segment;
|
||||||
typedef typename K::Point_3 Point;
|
typedef typename K::Point_3 Point;
|
||||||
typename K::Construct_segment_3 construct_segment;
|
|
||||||
public:
|
|
||||||
typedef Point result_type;
|
|
||||||
|
|
||||||
|
typename K::Construct_segment_3 construct_segment;
|
||||||
|
|
||||||
|
public:
|
||||||
Point
|
Point
|
||||||
operator()(const Point& p1, const Point& q1,
|
operator()(const Point& p1, const Point& q1,
|
||||||
const Point& p2, const Point& q2) const
|
const Point& p2, const Point& q2) const
|
||||||
|
|
@ -2216,11 +2216,12 @@ namespace CommonKernelFunctors {
|
||||||
template <typename K>
|
template <typename K>
|
||||||
class Compute_alpha_for_coplanar_triangle_intersection_3
|
class Compute_alpha_for_coplanar_triangle_intersection_3
|
||||||
{
|
{
|
||||||
|
typedef typename K::FT FT;
|
||||||
typedef typename K::Point_3 Point_3;
|
typedef typename K::Point_3 Point_3;
|
||||||
typedef typename K::Vector_3 Vector_3;
|
typedef typename K::Vector_3 Vector_3;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef typename K::FT result_type;
|
FT
|
||||||
result_type
|
|
||||||
operator()(const Point_3& p1, const Point_3& p2, // segment 1
|
operator()(const Point_3& p1, const Point_3& p2, // segment 1
|
||||||
const Point_3& p3, const Point_3& p4) const // segment 2
|
const Point_3& p3, const Point_3& p4) const // segment 2
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ template <class Base_,class R_> struct Side_of_oriented_sphere_2 : private Store
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Base_,class R_> struct Adapter_3 {
|
template <class Base_,class R_> struct Adapter_3 {
|
||||||
|
typedef typename Get_type<R_, Orientation_tag>::type Orientation;
|
||||||
|
typedef typename Get_type<R_, Oriented_side_tag>::type Oriented_side;
|
||||||
typedef typename Get_type<R_, Point_tag>::type Point;
|
typedef typename Get_type<R_, Point_tag>::type Point;
|
||||||
typedef typename Get_functor<R_, Compute_point_cartesian_coordinate_tag>::type CC;
|
typedef typename Get_functor<R_, Compute_point_cartesian_coordinate_tag>::type CC;
|
||||||
typedef typename Get_functor<Base_, Orientation_of_points_tag>::type Orientation_base;
|
typedef typename Get_functor<Base_, Orientation_of_points_tag>::type Orientation_base;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue