Subject: CGAL users discussion list
List archive
- From: <>
- To:
- Subject: [cgal-discuss] Random Point on Sphere
- Date: Sun, 16 Aug 2009 01:38:13 +0200 (CEST)
I am a student and would like to learn more about CGAL, but I'm having
difficulties.
according to the example: demo/Convex_hull_3/incremental_hull_3_demo.cpp
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
int main ()
{
Convex_hull_3 CH(3); // create instance of the class with dimension == 3
// generate 250 points randomly on a sphere of radius 100
// and insert them into the convex hull
CGAL::Random_points_in_sphere_3<Point_3, Creator> gen(100);
for (int i = 0; i < 250 ; i++, ++gen)
CH.insert(*gen);
assert(CH.is_valid());
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Point_3 p(int x,int y,int z);
CGAL::Random_points_in_sphere_3<p, Creator> gen(100);
the above statement is wrong, how to implement????
I would like to generate points for two balls, but he always puts the points
in
origin. So d would include the items in the coordinates (x, Y, Z) that I set.
how make?
thaks!
Leandro
- [cgal-discuss] Random Point on Sphere, lgazoni, 08/16/2009
- Re: [cgal-discuss] Random Point on Sphere, Bo Zhou, 08/16/2009
Archive powered by MHonArc 2.6.16.