Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Mesh 2 refinement custom
- Date: Fri, 24 Jun 2011 12:17:32 +0200
- Organization: GeometryFactory
On vendredi 24 juin 2011 09:41:56 Andreas Fabri wrote:
> On 24/06/2011 09:38, cyril bordreuil wrote:
> > Hi
> >
> > I would like to customize the size of the cell of a mesh 2 with a
> > function of a position in order
> > to have a kind of controlled grading.
> > I think it is possible with a user implemented MeshCriteria and a
> > delaunay_refine_mesh function.
> > If it is the right solution, does anybody have an example of this kind
> > of user defined criteria?
> >
> > Thank in advance for the help.
> >
> > Cyril
>
> The Constrained Delaunay Triangulation demo also features
> the 2D Delaunay mesh generator, and there is a sizing field
> that is the distance to the boundary.
Andreas is right. The following file
demo/Triangulation_2/include/CGAL/Lipschitz_sizing_field_criteria_2.h
in CGAL-3.8 implements something very similar to what you want.
This class is a copy-paste of include/CGAL/Delaunay_mesh_size_criteria_2.h
but
the size bound is not a constant: it is the result of the query to a function
of the point.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Mesh 2 refinement custom, cyril bordreuil, 06/24/2011
- Re: [cgal-discuss] Mesh 2 refinement custom, Andreas Fabri, 06/24/2011
- Re: [cgal-discuss] Mesh 2 refinement custom, Laurent Rineau (GeometryFactory), 06/24/2011
- Re: [cgal-discuss] Mesh 2 refinement custom, Mariette Yvinec, 06/24/2011
- Re: [cgal-discuss] Mesh 2 refinement custom, Andreas Fabri, 06/24/2011
Archive powered by MHonArc 2.6.16.