mirror of https://github.com/CGAL/cgal
SMT draw: Cannot use directly initializer list with variadic template.
This commit is contained in:
parent
26096e9365
commit
01decbb6a6
|
|
@ -48,7 +48,11 @@ int main(int argc, char* argv[])
|
|||
|
||||
std::cout<<"Cycle 1 (pink): "; display_cycle_info(lcc, cycle1);
|
||||
std::cout<<"Cycle 2 (green): "; display_cycle_info(lcc, cycle2);
|
||||
if (draw) { CGAL::draw(lcc, {cycle1, cycle2}); }
|
||||
if (draw)
|
||||
{
|
||||
auto cycles={cycle1, cycle2};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,11 @@ int main(int argc, char* argv[])
|
|||
|
||||
std::cout<<"Cycle 1 (pink): "; display_cycle_info(sm, cycle1);
|
||||
std::cout<<"Cycle 2 (green): "; display_cycle_info(sm, cycle2);
|
||||
if (draw) { CGAL::draw(sm, {cycle1, cycle2}); }
|
||||
if (draw)
|
||||
{
|
||||
auto cycles={cycle1, cycle2};
|
||||
CGAL::draw(sm, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
std::cout<<" Number of faces: "<<cycle.size()<<std::endl;
|
||||
|
||||
#ifdef CGAL_USE_BASIC_VIEWER
|
||||
if (draw) { draw_facewidth(lcc, cycle); }
|
||||
#endif
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
|
|
|||
|
|
@ -63,7 +63,10 @@ int main(int argc, char* argv[])
|
|||
<<" base point homotopic with path p3 (orange)."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(sm, {p1, p2, p3}); }
|
||||
{
|
||||
auto cycles={p1, p2, p3};
|
||||
CGAL::draw(sm, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,10 @@ int main(int argc, char** argv)
|
|||
<<" homotopic with path p3 (orange)."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(lcc, {p1, p2, p3}); }
|
||||
{
|
||||
auto cycles={p1, p2, p3};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,10 @@ int main(int argc, char** argv)
|
|||
<<" homotopic with path p2 (green)."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(lcc, {p1, p2}); }
|
||||
{
|
||||
auto cycles={p1, p2};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,10 @@ void test(const FaceGraph& mesh, bool draw, const char* title)
|
|||
std::cout<<"Path p1 "<<(res2?"IS":"IS NOT")<<" homotopic with path p2."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(mesh, {p1, p2}, title); }
|
||||
{
|
||||
auto cycles={p1, p2};
|
||||
CGAL::draw(mesh, cycles, title);
|
||||
}
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
int main(int argc, char** argv)
|
||||
|
|
|
|||
|
|
@ -107,7 +107,10 @@ int main(int argc, char** argv)
|
|||
<<" simple."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(lcc, {p1, p2, p3}); }
|
||||
{
|
||||
auto cycles={p1, p2, p3};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,10 @@ int main(int argc, char** argv)
|
|||
<<" simple."<<std::endl;
|
||||
|
||||
if (draw)
|
||||
{ CGAL::draw(lcc, {p}); }
|
||||
{
|
||||
auto cycles={p};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,11 @@ int main(int argc, char* argv[])
|
|||
|
||||
std::cout<<"Cycle 1 (pink): "; display_cycle_info(lcc, cycle1);
|
||||
std::cout<<"Cycle 2 (green): "; display_cycle_info(lcc, cycle2);
|
||||
if (draw) { CGAL::draw(lcc, {cycle1, cycle2}); }
|
||||
if (draw)
|
||||
{
|
||||
auto cycles={cycle1, cycle2};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,11 @@ int main(int argc, char* argv[])
|
|||
std::cout<<" Number of edges in cycle: "<<cycle.length()<<std::endl;
|
||||
std::cout<<" Cycle length: "<<cycle_length<<std::endl;
|
||||
std::cout<<" Root: "<<lcc.point(root)<<std::endl;
|
||||
if (draw) { CGAL::draw(lcc, {cycle}); }
|
||||
if (draw)
|
||||
{
|
||||
auto cycles={cycle};
|
||||
CGAL::draw(lcc, cycles);
|
||||
}
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in New Issue