Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Kernel::ConstructProjectedPoint_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Kernel::ConstructProjectedPoint_3


Chronological Thread 
  • From: Benjamin SCHWARZ <>
  • To:
  • Subject: [cgal-discuss] Kernel::ConstructProjectedPoint_3
  • Date: Wed, 19 May 2010 14:40:28 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=a5PeNYlqsNf0EV9kJQDPX6zYnLH3IBPw+RwMjmaXynD95/3Z94fQa4QUUjvjWPy0aT Zn6AG52HjCHDqCxJTvfrL9pPLEExifLQbpab9fq6pFDOUnd+fst8C4QJfybya3QRUTBs jn5LkTw+0P3DNPtWDBRCzeeiRtOzjYyjr0iR8=

Hello list,

I need to build the projection of a point onto a line, therefore I tried
to use Kernel::ConstructProjectedPoint_3 with no success. I paste here my
toy-example, please, tell me if Im am doing anything wrong.



#include <CGAL/cartesian.h>
typedef CGAL::Cartesian<double> K;
typedef K::ConstructProjectedPoint_3 Cons;
typedef K::Point_3 Point;
typedef K::Line_3 Line;

int main(){
Cons cons();
Point a(0,0,0);
Point b(0,0,10);
Point c(3,5,4);

Line l(a,b);

Point d = cons(c);
std::cout<< d<<std::endl;

};



And my gcc output :

pipo.C:5: error: ‘ConstructProjectedPoint_3’ in class ‘K’ does not name a type
pipo.C: In function ‘int main()’:
pipo.C:10: error: ‘Cons’ was not declared in this scope
pipo.C:10: error: expected `;' before ‘cons’
pipo.C:17: error: ‘cons’ was not declared in this scope



--Ben


Archive powered by MHonArc 2.6.16.

Top of Page