Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] setting parameter values on the fly... problem with consts?
- Date: Tue, 06 Aug 2013 14:03:02 +0200
- Organization: GeometryFactory
Le vendredi 19 juillet 2013 21:58:32 Audette, Michel A. a écrit :
> Dear CGAL users,
>
> I would like to produce a 3D mesh in a manner where the volume mesh is
> consistent with an input surface mesh, and whereby I would provide this
> edge length on the fly, on the basis of which I would like to compute the
> facet and cell sizes as well...
>
> Something like this...
>
> // Mesh criteria
> double edge_size_objective = 0.024;
> double facet_size_objective =
> sqrt(3.0)/4.0*edge_size_objective*edge_size_objective; double
> cell_size_objective = sqrt(2.0)/12.0*pow(edge_size_objective, 3.0);
>
> std::cout << " sizes edge " << edge_size_objective << " facet " <<
> facet_size_objective << " cell " << cell_size_objective << "\n";
>
> Mesh_criteria criteria(edge_size = edge_size_objective,
> facet_angle = 30, facet_size =
> facet_size_objective, facet_distance = edge_size_objective,
> cell_radius_edge_ratio = 3, cell_size = cell_size_objective);
>
> I'm finding however that the compiler does not like that, possibly because
> of consts in the declaration... Any way to get around this?
That should work, provided you have that using directive:
using namespace CGAL::parameters;
Can you please copy-paste the first error of the compiler?
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- Re: [cgal-discuss] setting parameter values on the fly... problem with consts?, Laurent Rineau (CGAL/GeometryFactory), 08/06/2013
Archive powered by MHonArc 2.6.18.