mirror of https://github.com/CGAL/cgal
Fix calls to dihedral_angle()
This commit is contained in:
parent
423242be31
commit
6be3772654
|
|
@ -41,7 +41,7 @@ dihedral_angle(const typename K::Point_3& a,
|
|||
K k = K())
|
||||
{
|
||||
// Now in the CGAL kernels
|
||||
return k.compute_dihedral_angle_3_object()(a, b, c, d);
|
||||
return k.compute_approximate_dihedral_angle_3_object()(a, b, c, d);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -82,11 +82,11 @@ CGAL::internal::Weight_min_max_dihedral_and_area
|
|||
Halfedge_handle edge_it = halfedge(*begin, poly);
|
||||
double ang_max = 0;
|
||||
for(int i = 0; i < 3; ++i) {
|
||||
double angle = 180 - CGAL::abs(
|
||||
CGAL::dihedral_angle(ppmap[target(edge_it,poly)],
|
||||
ppmap[source(edge_it,poly)],
|
||||
ppmap[target(next(edge_it,poly),poly)],
|
||||
ppmap[target(next(opposite(edge_it,poly),poly),poly)]) );
|
||||
double angle = 180 -
|
||||
CGAL::abs(CGAL::approximate_dihedral_angle(ppmap[target(edge_it,poly)],
|
||||
ppmap[source(edge_it,poly)],
|
||||
ppmap[target(next(edge_it,poly),poly)],
|
||||
ppmap[target(next(opposite(edge_it,poly),poly),poly)]) );
|
||||
edge_it = next(edge_it,poly);
|
||||
ang_max = (std::max)(angle, ang_max);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue