Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Remeshing a surface

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Remeshing a surface


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Remeshing a surface
  • Date: Mon, 18 Feb 2013 17:31:05 +0100
  • Organization: GeometryFactory

Le dimanche 17 février 2013 12:08:13 gupta61 a écrit :
> I tried using function "make_surface_mesh" to do this. The problem I am
> encountering is that the code hangs and never returns back if I try to
> remesh. I am attaching a simple example with this message which can recreate
> the problem. There are 4 files attached:
> *test_CGAL_remesh.C* - File with main() where I am reading the input
> surface, getting the points and trying to make another surface from those
> points.
> *test_CGAL_config.h* - Configuration file for defining the typedef and
> kernel etc.

I can see in the fike test_CGAL_config.h that you are trying to use the
kernel
CGAL::Exact_predicates_exact_constructions_kernel with the CGAL meshing
functions.

I may sound a good idea, but that kernel is not adapted at all for iterative
meshing algorithms, like the one of CGAL::make_surface_mesh(). And the
behavior of such an algorithm with the "exact-exact" kernel will be a
progressive exhaustion of the memory, because the exact computations are
heavier and heavier. That explains why you think there is an infinite loop.

I suggest you define the macro CGAL_SURFACE_MESHER_VERBOSE to 1, so that you
can "see" what happens internally, on the console.

And use CGAL::Exact_predicates_inexact_constructions_kernel as a kernel.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page