Skip to content

Commit

Permalink
Merge remote-tracking branch 'cgal/5.6.x-branch' into 6.0.x-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Dec 4, 2024
2 parents 65d4008 + e6c6f22 commit b8874a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ namespace internal {
std::vector< Intersection_result > inters;
intersection(*c_pq, *c_qr, std::back_inserter(inters));

CGAL_assertion(assign(pair, inters[0]));
CGAL_assertion_code(bool ok=)
assign(pair, inters[0]);
CGAL_assertion(ok);
if(pair.second == 1)
{
if(_gt.has_on_bounded_side_2_object()(l_inf, pair.first))
return pair.first;

CGAL_assertion(assign(pair, inters[1]));
CGAL_assertion_code(bool ok=)
assign(pair, inters[1]);
CGAL_assertion(ok);
return pair.first;
}
return pair.first;
Expand All @@ -104,13 +108,17 @@ namespace internal {
std::vector< Intersection_result > inters;
intersection(*l, *c, std::back_inserter(inters));

CGAL_assertion(assign(pair,inters[0]));
CGAL_assertion_code(bool ok=)
assign(pair,inters[0]);
CGAL_assertion(ok);
if(pair.second == 1)
{
if(_gt.has_on_bounded_side_2_object()(l_inf, pair.first))
return pair.first;

CGAL_assertion(assign(pair, inters[1]));
CGAL_assertion_code(bool ok=)
assign(pair, inters[1]);
CGAL_assertion(ok);
return pair.first;
}
return pair.first;
Expand Down Expand Up @@ -240,12 +248,16 @@ namespace internal {
intersection(bis_pq, l_inf, std::back_inserter(inters));
std::pair<Circular_arc_point_2, unsigned> pair;

CGAL_assertion(assign(pair,inters[0]));
CGAL_assertion_code(bool ok=)
assign(pair,inters[0]);
CGAL_assertion(ok);
CGAL_assertion(pair.second == 1);
if(_gt.less_y_2_object()(p, q))
return Line_arc_2(bis_pq,a,pair.first);

CGAL_assertion(assign(pair,inters[1]));
CGAL_assertion_code(ok=)
assign(pair,inters[1]);
CGAL_assertion(ok);
CGAL_assertion(pair.second == 1);
return Line_arc_2(bis_pq,a,pair.first);
}
Expand All @@ -261,7 +273,9 @@ namespace internal {
intersection(*c_pq, l_inf, std::back_inserter(inters));
std::pair<Circular_arc_point_2, unsigned> pair;

CGAL_assertion(assign(pair,inters[0]));
CGAL_assertion_code(bool ok=)
assign(pair,inters[0]);
CGAL_assertion(ok);
CGAL_assertion(pair.second == 1);

Hyperbolic_point_2 approx_pinf(to_double(pair.first.x()), to_double(pair.first.y()));
Expand All @@ -275,7 +289,9 @@ namespace internal {
return Circular_arc_2(*c_pq, pair.first, a);
}

CGAL_assertion(assign(pair,inters[1]));
CGAL_assertion_code(ok=)
assign(pair,inters[1]);
CGAL_assertion(ok);
if(_gt.orientation_2_object()(approx_c,approx_a,approx_pinf) == POSITIVE)
return Circular_arc_2(*c_pq, pair.first, a);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ typedef Remeshing_triangulation::Cell_handle Cell_handle;

int main(int argc, char* argv[])
{

const unsigned int nbv = (argc > 1) ? atoi(argv[1]) : 100;

CGAL::Random rng;
CGAL::Random rng = CGAL::get_default_random();
std::cout << "CGAL Random seed = " << CGAL::get_default_random().get_seed() << std::endl;

std::vector<Point> points;
Expand Down

0 comments on commit b8874a2

Please sign in to comment.