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: Fri, 03 Aug 2012 11:55:49 +0200
  • Organization: GeometryFactory

Le mercredi 01 août 2012 05:56:24 ju21 a écrit :
> Another weird thing, with the previous templates and includes I can't do
> this
>
>
> /***************************************************************************
>
> PolyH pol ( mesh );
> Mesh_domain domain( pol );
>
> // *domain.detect_features();* // doesn't work for the moment
>
> Mesh_criteria criteria( facet_angle = 30
> , facet_size = 6
> , facet_distance = 4
> , edge_size = 1
> // test
> ,
> cell_radius_edge_ratio = 3
> , cell_size = 8
> );
>
> C3t3 _c3t3;
> * _c3t3 = CGAL::make_mesh_3<C3t3> ( domain, criteria );*
>
> /***************************************************************************
>
> There is no compilation problem when I declare the objet *_c3t3* but when I
> call the function *make_mesh_3()* there is the following error which I don't
> understand :
>
> /***************************************************************************
>
> error: ‘const class
> CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet&lt;CGAL::Halfed
> geDS_face_base&lt;CGAL::HalfedgeDS_list_types&lt;CGAL::Mesh_3::Robust_inters
> ection_traits_3&lt;CGAL::Epick>,
> CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,
> std::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epick> >
> > >’ has no member named ‘patch_id’

Actually that is a big bug in the documentation of the requirements of
CGAL::Polyhedral_mesh_domain_with_features_3. The polyhedron type that is
used
must use the items class template that is in the file
<CGAL/Mesh_polyhedron_3.h>. The easiest way to satisfy those requirements is
to use CGAL::Mesh_polyhedron_3<K>::type as polyhedron type.

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