Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Random_points_on_sphere_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Random_points_on_sphere_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Random_points_on_sphere_3
  • Date: Mon, 04 Oct 2010 09:03:51 +0200

It is hard to answer to a question without seeing a line of your code.

Anyway, this is working on my machine with CGAL 3.7 beta1

#include <CGAL/Simple_cartesian.h>
#include <CGAL/point_generators_3.h>
#include <CGAL/random_selection.h>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point_3;
typedef CGAL::Creator_uniform_3<double,Point_3> Creator;

int main()
{
CGAL::Random_points_on_sphere_3<Point_3,Creator> g( 100.0);
return 0;
}




sbdk11 wrote:
Why I am getting following errors for the line
CGAL::Random_points_on_sphere_3<Point_3,Creator> g(20,Random&
rnd=default_random);


/cpp/test1/test3.cpp: In function ‘int main()’:
/cpp/test1/test3.cpp:75: error: ‘Random’ was not declared in this scope
/cpp/test1/test3.cpp:75: error: ‘rnd’ was not declared in this scope
/cpp/test1/test3.cpp:75: error: ‘default_random’ was not declared in this
scope





Archive powered by MHonArc 2.6.16.

Top of Page