Subject: CGAL users discussion list
List archive
- From: Mariette Yvinec <>
- To:
- Subject: Re: [cgal-discuss] CGAL marching cubes is very slow?
- Date: Fri, 17 Jul 2009 11:09:24 +0200
CGAL Surface mesher is not a marching cube.
It builds iteratively a sampling adapted to the surface geometry
so that the restricted triangulation of this sampling is
an accurate approximation of the surface and a nice
surface mesh formed with well shaped triangles.
Christian Walder wrote:
Dear All,
I have used the CGAL library to perform marching cubes on an implicit surface. Unfortunately it is extremely slow - previously I have used a different implementation from an unknown author, and it is orders of magnitude faster for roughly the same resolution. I am wondering if I have called the functions correctly, and whether there are any easy ways attempt to speed it up.
Best Regards,
Christian
ps.
The key snippet of code is the following:
Tr tr; // 3D-Delaunay triangulation C2t3 c2t3 (tr); // 2D-complex in 3D-Delaunay triangulation Surface_3 surface(implicit_function, Sphere_3(Point_3(center[0],center[1],center[2]), radius));
// defining meshing criteria
CGAL::Surface_mesh_default_criteria_3<Tr> criteria(30., // angular bound radius_bound, // radius bound distance_bound); // distance bound CGAL::make_surface_mesh(c2t3, surface, criteria, CGAL::Non_manifold_tag());
--
Mariette Yvinec
Geometrica project team
INRIA Sophia-Antipolis
- [cgal-discuss] CGAL marching cubes is very slow?, Christian Walder, 07/16/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Mariette Yvinec, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Christian Walder, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Dominik Szczerba, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Andreas Fabri, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Christian Walder, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Bo Zhou, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Christian Walder, 07/17/2009
- Re: [cgal-discuss] CGAL marching cubes is very slow?, Mariette Yvinec, 07/17/2009
Archive powered by MHonArc 2.6.16.