Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] "left_vertex_2" undeclared... error
- Date: Sat, 22 Dec 2007 13:35:57 +0100
There is a global function left_vertex_2(Polygon_2)
and a member function Polygon_2::left_vertex
Mahmood NT wrote:
Hello,
I have wrote a code using polygon:
if (! pgn.is_simple())
{
std::cerr << "Error - Polygon no. " << i + 1
<< " is not simple." << std::endl;
return (false);
}
// for first polygon (domain) we have to extract boundary point // so that generated random milestones have to fit in domain
if ( domainFlag ) {
xMin = pgn.left_vertex_2();
xMax = pgn.right_vertex_2();
yMin = pgn.bottom_vertex_2();
yMax = pgn.top_vertex_2();
if (fout.is_open()) {
fout << xMin << xMax << yMin << yMax;
}
domainFlag = false; // for other polygons, we do not need it
}
during the compilation there is no error at "pgn.is_simple()", but at
"left_vertex_2()" and others it says:
VVc_demo.cpp: In function `bool read_polygons(const char*, Polygons_list_2&,
Bbox_2&)':
VVc_demo.cpp:671: error: `left_vertex_2' undeclared (first use this function)
VVc_demo.cpp:671: error: (Each undeclared identifier is reported only once for
each function it appears in.)
VVc_demo.cpp:672: error: `right_vertex_2' undeclared (first use this function)
VVc_demo.cpp:673: error: `bottom_vertex_2' undeclared (first use this
function)
VVc_demo.cpp:674: error: `top_vertex_2' undeclared (first use this function)
Why is_simple() does not have problem but others have??
Thanks, Mahmood NT
____________________________________________________________________________________
Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
- "left_vertex_2" undeclared... error, Mahmood NT, 12/22/2007
- Re: [cgal-discuss] "left_vertex_2" undeclared... error, Andreas Fabri, 12/22/2007
Archive powered by MHonArc 2.6.16.