Skip to Content.
Sympa Menu

cgal-discuss - "left_vertex_2" undeclared... error

Subject: CGAL users discussion list

List archive

"left_vertex_2" undeclared... error


Chronological Thread 
  • From: Mahmood NT <>
  • To: CGAL discuss <>
  • Subject: "left_vertex_2" undeclared... error
  • Date: Sat, 22 Dec 2007 04:14:49 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=QakxIcK9yvy2cq38LIU5FJpIRWSLKwPi4vFr+1ng+oiyOV/T6Fwu2itNwyYtBGKsIyte/YjO94yjkjXjHxUS8UUxT/csHiY7XgILBlUWfsDpkYXSckX+3hsjexJkz36hhH5glJp0OHbaUmAzSoe3CGWcEeuAyngQ+PTOohdYKlg=;

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



Archive powered by MHonArc 2.6.16.

Top of Page