Bug fix: I was using the global squared_distance(...) function here.

This commit is contained in:
Laurent Rineau 2002-07-10 12:36:12 +00:00
parent 0a1c6aae9e
commit 1dd5e0d4ab
1 changed files with 3 additions and 3 deletions

View File

@ -912,6 +912,9 @@ construct_cluster(Vertex_handle v,
const Constrained_vertex_circulator& end,
Cluster c)
{
Compute_squared_distance_2 squared_distance =
geom_traits().compute_squared_distance_2_object();
if(c.vertices.empty())
{
c.reduced = false;
@ -931,9 +934,6 @@ construct_cluster(Vertex_handle v,
Point& vp = v->point();
Compute_squared_distance_2 squared_distance =
geom_traits().compute_squared_distance_2_object();
FT greatest_cosine =
squared_cosine_of_angle_times_4(c.smallest_angle.first->point(),
v->point(),