Subject: CGAL users discussion list
List archive
- From: Jane Tournois <>
- To:
- Subject: Re: [cgal-discuss] make_mesh_3 criteria
- Date: Mon, 05 Jan 2015 09:42:32 +0100
- Organization: GeometryFactory
Hi,
Le 04/01/2015 20:08, Zohar a écrit :
Hi,It is not implemented, and actually I think you could not get guarantees on the correctness of your output mesh if you stop meshing when a max number of facets is reached.
I am making a mesh_3 from a manifold polyhedron_3 along the lines of the
code below.
1.
Is it possible to set the criteria to break when a max number of facets was
reached (while keeping the facet angle and facet distance criteria)?
A different criteria would be to break only when a max number of facets was
reached (optimizing face distance).
can you please send your output mesh?
2.
I used a facet topology criteria. Nevertheless, I get non-manifold elements?
You probably need a minimal example, but I wanted to verify that before
constructing one.
Thanks,
Jane.
----
typedef CGAL::Exact_predicates_inexact_constructions_kernel GT;
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr3;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr3> C3t3;
typedef CGAL::Mesh_criteria_3<Tr3> Mesh_criteria;
typedef CGAL::Mesh_facet_criteria_3<Tr3> Facet_criteria;
typedef Mesh_criteria::Cell_criteria Cell_criteria;
Polyhedron2 poly;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron2, GT> Mesh_domain;
Mesh_domain domain(poly);
Facet_criteria facet_criteria(25., 0.1, dist,
CGAL::FACET_VERTICES_ON_SAME_SURFACE_PATCH_WITH_ADJACENCY_CHECK);
Cell_criteria cell_criteria(2., 0.4); // radius-edge ratio, size
Mesh_criteria criteria(facet_criteria, cell_criteria);
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_perturb(),
no_exude());
vector<GT::Point_3> points;
vector<int> tris;
get_boundary_of_c3t3<C3t3,GT>(c3t3, 0, points, tris);
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/make-mesh-3-criteria-tp4660269.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/
- [cgal-discuss] make_mesh_3 criteria, Zohar, 01/04/2015
- Re: [cgal-discuss] make_mesh_3 criteria, Jane Tournois, 01/05/2015
- Re: [cgal-discuss] make_mesh_3 criteria, Zohar, 01/05/2015
- Re: [cgal-discuss] make_mesh_3 criteria, Jane Tournois, 01/05/2015
Archive powered by MHonArc 2.6.18.