Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
efifogel committed Dec 11, 2023
1 parent e602000 commit c40dbb5
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 230 deletions.
15 changes: 6 additions & 9 deletions Envelope_2/include/CGAL/Envelope_2/Env_divide_and_conquer_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,11 @@ class Envelope_divide_and_conquer_2
env_type = (type ? LOWER : UPPER);

// Separate the regular curves from the vertical ones.
typename Traits_2::Is_vertical_2 is_vertical =
traits->is_vertical_2_object();
auto is_vertical = traits->is_vertical_2_object();

Curve_pointer_vector reg_vec;
Curve_pointer_vector vert_vec;
XCurvesIterator iter;
Curve_pointer_vector reg_vec;
Curve_pointer_vector vert_vec;
XCurvesIterator iter;

for (iter = begin; iter != end; ++iter)
{
Expand All @@ -172,13 +171,11 @@ class Envelope_divide_and_conquer_2
}

// Construct the envelope for the non-vertical curves.
_construct_envelope_non_vertical (reg_vec.begin(), reg_vec.end(),
diagram);
_construct_envelope_non_vertical(reg_vec.begin(), reg_vec.end(), diagram);

// Merge the vertical segments.
if (vert_vec.size() > 0)
_merge_vertical_segments (vert_vec,
diagram);
_merge_vertical_segments(vert_vec, diagram);

return;
}
Expand Down
Loading

0 comments on commit c40dbb5

Please sign in to comment.