Subject: CGAL users discussion list
List archive
- From: ju21 <>
- To:
- Subject: [cgal-discuss] Re: Problem with make_mesh_3
- Date: Mon, 30 Jul 2012 05:08:14 -0700 (PDT)
Laurent Rineau (CGAL/GeometryFactory) wrote
>
>
> 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/
>
>
I tryed this and it still doesn't work. And this is an example of use :
/***************************************************************************/
#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;
// Conversion BbMesh3D* -> CgalPolyhedron
typedef CgalPolyhedron<K> PolyH;
// 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;
//---
// mesh is a given parameter representing a closed 3D mesh
PolyH pol ( mesh ); // mesh is turn into a Polyhedron_3 using
class CgalPolyhedron (alias PolyH)
Mesh_domain domain;
Mesh_criteria criteria( facet_angle = 30
, facet_size = 6
, facet_distance = 4
, cell_radius_edge = 3
, cell_size = 8
);
_c3t3 = CGAL::make_mesh_3<C3t3> ( domain, criteria
,
no_odt(), no_lloyd()
,
no_perturb(), no_exude()
);
/***************************************************************************/
that example worked when I used Polyhedral_mesh_domain_3 and the
appropriated templates
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Problem-with-make-mesh-3-tp4655492p4655623.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Problem with make_mesh_3, ju21, 07/19/2012
- [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.