Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp


Chronological Thread 
  • From: Michel Audette <>
  • To:
  • Subject: Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp
  • Date: Thu, 9 Dec 2010 15:57:58 -0500

Hi Laurent,

I understand it's probably late if you're in France, so I appreciate your
help.

I'm including the source code. It's basically the
examples/Mesh_3/mesh_polyhedral_domain.cpp example as is, except for a
check on argv, so far.

Cheers,

Michel

On Thu, Dec 9, 2010 at 3:54 PM, Laurent Rineau (GeometryFactory)
<>
wrote:
> Le jeudi 09 décembre 2010 21:31:57, Michel Audette a écrit :
>> I had it at 500, with both my program and the CGAL build done that
>> way. I don't understand why it complains about 50 still... Same thing
>> at 5000. Do I also have to build Boost that way?
>
> No. There is probably a real infinite recursion here.
>
> You already told use what compiler version you use: g++-4.4.3. What is the
> version of CGAL that is installed in /usr/local?
>
> Can you send the source code of OffInputCGALTetrahedralization.cxx if it is
> short, or publish it on any web site, if it is not?
>
> Another way to try to understand what happened would be to see the "long
> litany of messages, many related to boost)", that g++ displays after the
> error
> (send it in private mail, because that I know it will be a very long file).
>
> But I would prefer to see the source code, to try to reproduce the error.
>
> --
> Laurent Rineau, PhD
> Release Manager of the CGAL Project       http://www.cgal.org/
> R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>



--
Michel Audette, Ph.D.
R & D Engineer,
Kitware Inc.,
Chapel Hill, N.C.
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_3/Robust_intersection_traits_3.h>

#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>

#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>

// IO
#include <CGAL/IO/Polyhedron_iostream.h>

// Domain 
// (we use exact intersection computation with Robust_intersection_traits_3)
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> Geom_traits;
typedef CGAL::Polyhedron_3<Geom_traits> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, Geom_traits> Mesh_domain;

// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;

// Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;

// To avoid verbose function and named parameters call
using namespace CGAL::parameters;

int main( int argc, char ** argv )
{
  // Verify the number of parameters in the command line
  if( argc < 3)
    {
    std::cerr << "Usage: " << std::endl;
    std::cerr << argv[0] << " inputSurfaceFile.off outputTetFile " << std::endl;
    return EXIT_FAILURE;
    }

  // Create input polyhedron
  Polyhedron polyhedron;
  std::ifstream input(argv[1]);
  input >> polyhedron;
   
  // Create domain
  Mesh_domain domain(polyhedron);
  
  // Mesh criteria (no cell_size set)
  Mesh_criteria criteria(facet_angle=45, facet_size=100.0, facet_distance=10.0,
                         cell_radius_edge=10.0, cell_size=1000);
  
  // Mesh generation
  C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_perturb(), no_exude());

  // Output
  std::ofstream medit_file(argv[2]);
  c3t3.output_to_medit(medit_file);
  medit_file.close();

#if 0  
  // Set tetrahedron size (keep cell_radius_edge), ignore facets
  Mesh_criteria new_criteria(cell_radius_edge=3, cell_size=0.03);

  // Mesh refinement
  CGAL::refine_mesh_3(c3t3, domain, new_criteria);

  // Output
  medit_file.open("out_2.mesh");
  c3t3.output_to_medit(medit_file);
#endif  

  return 0;
}



Archive powered by MHonArc 2.6.16.

Top of Page