Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Kernel::ConstructProjectedPoint_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Kernel::ConstructProjectedPoint_3
  • Date: Wed, 19 May 2010 14:43:37 +0200

Benjamin SCHWARZ wrote:
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
Hello Ben,

ConstructProjectedPoint_3 looks like a concept name.
Try with Construct_projected_point_3.

S.



Archive powered by MHonArc 2.6.16.

Top of Page