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 12:43:57 +0200
  • Organization: GeometryFactory

Le lundi 30 juillet 2012 03:20:31 ju21 a écrit :
> Hi again
>
>
> Mariette Yvinec wrote
>
> > yes it is normal if you use as domain :
> > /CGAL::Polyhedral_mesh_domain_3<Polyhedron>
> > &lt;http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3_ref/Clas
> > s_Polyhedral_mesh_domain_3.html#Cross_link_anchor_1534&gt;/
> >
> > If you want the mesh to respect the sharp features of the input polyhedron
> > you need to use;
> > /CGAL::Polyhedral_mesh_domain_with_features_3<IGT>
> > &lt;http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3_ref/Clas
> > s_Polyhedral_mesh_domain_with_features_3.html#Cross_link_anchor_1535&gt;/
> Hi again,
>
> I have a problem to integrate the IGT concept. I tried those templates :
>
> /***************************************************************************
> /
>
> // Kernel
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
>
> // Conversion from any 3D mesh to Polyhedron_3
> typedef CgalPolyhedron<K> PolyH;
>
> // Domain
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
> typedef CGAL::Polyhedron_3<K> Polyhedron;
> typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> IGT;
> typedef CGAL::Polyhedral_mesh_domain_with_features_3</*K*/IGT> 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;
>
> /***************************************************************************
> /
>
> And I can't create my domain passing a Polyhedron in the domain constructor
> anymore. Hope you will have an idea about my problem.

Please give use a more complete example, with the #include.

The documentation of Polyhedral_mesh_domain_with_features_3 is not correct,
in my opinion. Its constructor documentation refers to a type "Polyhedron"
without telling anything about it. Actually, that class template has a second
template parameter; try that:

typedef CGAL::Polyhedral_mesh_domain_with_features_3<IGT, Polyhedron>
Mesh_domain;

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