mirror of https://github.com/CGAL/cgal
add CGAL_NTS before sign (bug in CORE, convertion from int to Sign)
This commit is contained in:
parent
cc3c6a31f4
commit
9f6605e383
|
|
@ -36,14 +36,14 @@ namespace CGAL {
|
|||
inline
|
||||
Sign sign_at( const typename AK::Polynomial_for_spheres_2_3 & equation,
|
||||
const typename AK::Root_for_spheres_2_3 &r){
|
||||
return sign(r.evaluate(equation));
|
||||
return CGAL_NTS sign(r.evaluate(equation));
|
||||
}
|
||||
|
||||
template < class AK >
|
||||
inline
|
||||
Sign sign_at(const typename AK::Polynomial_1_3 & equation,
|
||||
const typename AK::Root_for_spheres_2_3 &r){
|
||||
return sign(r.evaluate(equation));
|
||||
return CGAL_NTS sign(r.evaluate(equation));
|
||||
}
|
||||
|
||||
template < class AK >
|
||||
|
|
@ -247,9 +247,9 @@ namespace CGAL {
|
|||
const Root_of_2 t2 = make_root_of_2(alpha,FT(1),gama);
|
||||
|
||||
bool first_t1 = true;
|
||||
Sign sign_a1 = static_cast<Sign> (sign(p.a1()));
|
||||
Sign sign_a2 = static_cast<Sign> (sign(p.a2()));
|
||||
Sign sign_a3 = static_cast<Sign> (sign(p.a3()));
|
||||
Sign sign_a1 = CGAL_NTS sign(p.a1());
|
||||
Sign sign_a2 = CGAL_NTS sign(p.a2());
|
||||
Sign sign_a3 = CGAL_NTS sign(p.a3());
|
||||
if(sign_a1 == ZERO) {
|
||||
if(sign_a2 == ZERO) {
|
||||
first_t1 = (sign_a3 == POSITIVE);
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.b()) && is_zero(p.c())));
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.b()) && is_zero(p.c())));
|
||||
|
||||
|
|
@ -256,7 +256,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.a()) && is_zero(p.c())));
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.a()) && is_zero(p.c())));
|
||||
|
||||
|
|
@ -341,7 +341,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.a()) && is_zero(p.b())));
|
||||
|
||||
|
|
@ -394,7 +394,7 @@ namespace CGAL {
|
|||
|
||||
// It has to be the equation of a diametral circle
|
||||
CGAL_kernel_precondition((intersect<AK>(p,s)));
|
||||
CGAL_kernel_precondition(sign(p.a() * s.a() + p.b() * s.b() +
|
||||
CGAL_kernel_precondition(CGAL_NTS sign(p.a() * s.a() + p.b() * s.b() +
|
||||
p.c() * s.c() + p.d()) == ZERO);
|
||||
CGAL_kernel_precondition(!(is_zero(p.a()) && is_zero(p.b())));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue