Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Problem with make_mesh_3


Chronological Thread 
  • From: ju21 <>
  • To:
  • Subject: [cgal-discuss] Re: Problem with make_mesh_3
  • Date: Fri, 20 Jul 2012 02:00:49 -0700 (PDT)

These are include and typedef that I made :

/***************************************************************************/

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_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>

//---

// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, K> Mesh_domain;

// Conversion from any 3D mesh to Polyhedron_3
typedef CgalPolyhedron<K> PolyH;

// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3
C3t3;
typedef CGAL::Triangulation_3<K> Triangulation;

// Criteria
typedef CGAL::Mesh_criteria_3
Mesh_criteria;

/***************************************************************************/


Zohar wrote
>
> First make sure that you use
> Exact_predicates_inexact_constructions_kernel.
>

I use this one.


Zohar wrote
>
> Second copy the parameters from the example in the mesh generation doc.
>

I tried the parameters from the example of the document and I still had the
same problem of assertion violation.


Zohar wrote
>
> Third make sure that your domain (which you didn't specify) encloses the
> function (radius is squared radius for a sphere).
>

Concerning the domain it's *CgalPolyhedron* which is a home-made class
inheriting from *Polyhedron_3*. It makes a Polyhedron_3 from any sort of 3D
mesh

The code to tetrahedralize :

/***************************************************************************/

// 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( pol );
Mesh_criteria criteria( facet_angle = 30, facet_size = 0.1,
facet_distance
= 0.025
, *cell_radius_edge* = 2, cell_size =
0.1 );

C3t3 c3t3 = CGAL::make_mesh_3<C3t3> ( domain, criteria
,
no_odt(), no_lloyd()
,
no_perturb(), no_exude() );

/***************************************************************************/

One more thing, is it normal that the parameter *cell_radius_edge_ratio*
doesn't work whereas the parameter *cell_radius_edge* does ? Maybe it's the
same thing

So what do you think about all of this ?

Thanks



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Problem-with-make-mesh-3-tp4655492p4655498.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page