Subject: CGAL users discussion list
List archive
- From: ju21 <>
- To:
- Subject: [cgal-discuss] Re: Problem with make_mesh_3
- Date: Mon, 30 Jul 2012 07:32:35 -0700 (PDT)
Thank you for your time, I found some errors alone like the include and the
template parameters (copy and paste errors) but I didn't find this :
Laurent Rineau (CGAL/GeometryFactory) wrote
>
>
> 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/
>
>
I finally turn the previous code into :
/***************************************************************************
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_polyhedron_3.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
//#include <CGAL/Polyhedral_mesh_domain_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>
#include <CGAL/Mesh_domain_with_polyline_features_3.h>
//---
// Kernel
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
// Domain
typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> IGT;
typedef CGAL::Polyhedron_3<IGT> Polyhedron;
//typedef CGAL::Mesh_polyhedron_3<IGT>::type Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_with_features_3<IGT, Polyhedron>
Mesh_domain;
// Conversion mesh -> Polyhedron_3
typedef CgalPolyhedron<IGT> PolyH;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain, IGT>::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;
//---
PolyH pol ( mesh );
Mesh_domain domain( pol );
*domain.detect_features();*
/***************************************************************************
The last line generates this :
error: ‘class
CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<CGAL::HalfedgeDS_halfedge_base<CGAL::HalfedgeDS_list_types<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick>,
CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,
std::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> > > >’ has no member named ‘is_feature_edge’
So I tried to use
* typedef CGAL::Mesh_polyhedron_3<IGT>::type Polyhedron;*
instead of :
* typedef CGAL::Polyhedron_3<IGT> Polyhedron;*
But it doesn't work with the existing templates so I don't know if it was a
bad idea or if I have to change the templates. I'm trying to change it, at
the moment but if you see this post and you think that it wrong please tell
me. And if I succeed I'll tell you to don't make you waist your time.
Thanks again
Julie
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Problem-with-make-mesh-3-tp4655492p4655626.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Re: Problem with make_mesh_3, (continued)
- [cgal-discuss] Re: Problem with make_mesh_3, Zohar, 07/20/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/20/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/26/2012
- Re: [cgal-discuss] Re: Problem with make_mesh_3, Sebastien Loriot (GeometryFactory), 07/26/2012
- Re: [cgal-discuss] Re: Problem with make_mesh_3, Mariette Yvinec, 07/26/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/26/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/30/2012
- Re: [cgal-discuss] Re: Problem with make_mesh_3, Laurent Rineau (CGAL/GeometryFactory), 07/30/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/30/2012
- Re: [cgal-discuss] Re: Problem with make_mesh_3, Laurent Rineau (CGAL/GeometryFactory), 07/30/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/30/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/30/2012
- [cgal-discuss] Re: Problem with make_mesh_3, ju21, 07/30/2012
- Re: [cgal-discuss] Re: Problem with make_mesh_3, Laurent Rineau (CGAL/GeometryFactory), 07/30/2012
- [cgal-discuss] Re: Problem with make_mesh_3, Zohar, 07/20/2012
Archive powered by MHonArc 2.6.18.