Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Problem with make_mesh_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Problem with make_mesh_3


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Problem with make_mesh_3
  • Date: Mon, 30 Jul 2012 15:37:25 +0200
  • Organization: GeometryFactory

Le lundi 30 juillet 2012 05:08:14 ju21 a écrit :
> I tryed this and it still doesn't work. And this is an example of use :
>

There are a lot of things that do not compile in the example you has provided:

> /***************************************************************************
> /
>
> #include <CGAL/Polyhedron_3.h>
> #include <CGAL/Mesh_polyhedron_3.h>
>
> #include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
>
> #include <CGAL/Triangulation_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/make_mesh_3.h>
> #include <CGAL/Triangulation_data_structure_3.h>
> #include <CGAL/Triangulation_vertex_base_with_info_3.h>
> #include <CGAL/Triangulation_cell_base_with_info_3.h>
> #include <CGAL/Polyhedron_items_3.h>
> #include <CGAL/Mesh_3/Robust_intersection_traits_3.h>
>
> //---
>
> // Kernel
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;

Missing #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>


> // Conversion BbMesh3D* -> CgalPolyhedron
> typedef CgalPolyhedron<K> PolyH;

I do not have a definition for that type template CgalPolyhedron. But anyway
it is not used in the following so I commented the line.
>
> // Domain
> typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> IGT;
> typedef CGAL::Polyhedron_3<K> Polyhedron;
> typedef CGAL::Polyhedral_mesh_domain_with_features_3<IGT, Polyhedron>
> Mesh_domain;
>
> // Triangulation
> typedef CGAL::Mesh_triangulation_3< Mesh_domain >::type Tr;
> typedef CGAL::Mesh_complex_3_in_triangulation_3<
> Tr,Mesh_domain::Corner_index,Mesh_domain::Curve_segment_index> C3t3;
>
> // Criteria
> typedef CGAL::Mesh_criteria_3
> Mesh_criteria;

CGAL::Mesh_criteria_3 is a class template. It cannot be used like that. You
need to specify template arguments. Actually the type "Tr".


Anyway, I found out one problem in your use of
Polyhedral_mesh_domain_with_features_3. If you write:

CGAL::Polyhedral_mesh_domain_with_features_3<IGT, Polyhedron>

then the Polyhedron traits class must also be IGT, and not K.

--
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