mirror of https://github.com/CGAL/cgal
Fix usage of read_polygon in other tests
This commit is contained in:
parent
9575bd52d4
commit
d266522611
|
|
@ -63,10 +63,7 @@ int main (int argc, char* argv[])
|
||||||
// Read the polygon from the input file.
|
// Read the polygon from the input file.
|
||||||
Polygon_2 pgn;
|
Polygon_2 pgn;
|
||||||
const char* filename = argv[i];
|
const char* filename = argv[i];
|
||||||
if (! read_polygon (filename, pgn)) {
|
read_polygon (filename, pgn);
|
||||||
std::cerr << "Failed to read: <" << filename << ">." << std::endl;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read the offset radius.
|
// Read the offset radius.
|
||||||
Rational r;
|
Rational r;
|
||||||
|
|
|
||||||
|
|
@ -77,11 +77,7 @@ int main (int argc, char **argv)
|
||||||
int i = 1;
|
int i = 1;
|
||||||
while (i < argc)
|
while (i < argc)
|
||||||
{
|
{
|
||||||
if (! read_polygon (argv[i], pgn))
|
read_polygon (argv[i], pgn);
|
||||||
{
|
|
||||||
std::cerr << "Failed to read: <" << argv[i] << ">." << std::endl;
|
|
||||||
return (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read the offset radius.
|
// Read the offset radius.
|
||||||
int numer, denom;
|
int numer, denom;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue