Subject: CGAL users discussion list
List archive
- From: Daniel Russel <>
- To:
- Subject: Re: [cgal-discuss] 3D surface mesh generation
- Date: Tue, 19 May 2009 09:20:27 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=SU3iBWGJx0AW1Qo5GWoR/N0zsuxn4gta96BSmYvx7mtXqh+HE5atI92ZopZUXCwfo8 dIiNfYXHlAogexeXCGFCgKFuzNEqKnyFYcIHG/2WU+fFzXqNv6wr7iga4z8aHQu9ceHZ 9t2WesdWyWdkOviAPn8C5dG/V7envMf42w7DM=
As someone who gets bitten by this periodically when using the surface mesher, I would really appreciate if there is were a test in the code which could give a better error message if you mess this up. Many spheres provided by other libraries use radius and even the min sphere of spheres in CGAL does, so it is a quite easy mistake to make. Especially since the surface mesher is particularly likely to be used without heavy use of the rest of the CGAL library.Surface_3 surface(ellipsoid_function, // pointer to function
Sphere_3(CGAL::ORIGIN, 3.5)); // bounding sphere
Your bounding sphere is defined with a *squared* radius of 3.5, and clearly
that sphere does not bound the surface. In my opinion, you need at least 10 as
*squared* radius of the sphere.
http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Kernel_23_ref/Class_Sphere_3.html
Perhaps a test when the sphere is used to prevent a point from being added. Find a nearby point on the sphere and make sure that it is on the correct side of the isosurface.
- [cgal-discuss] 3D surface mesh generation, weihy1984, 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Laurent Rineau (GeometryFactory), 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Daniel Russel, 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Laurent Rineau (GeometryFactory), 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Daniel Russel, 05/19/2009
- Re:Re: [cgal-discuss] 3D surface mesh generation, weihy1984, 05/20/2009
- Re: [cgal-discuss] 3D surface mesh generation, Mariette Yvinec, 05/20/2009
- Re: [cgal-discuss] 3D surface mesh generation, Laurent Rineau (GeometryFactory), 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Daniel Russel, 05/19/2009
- Re: [cgal-discuss] 3D surface mesh generation, Laurent Rineau (GeometryFactory), 05/19/2009
Archive powered by MHonArc 2.6.16.