Subject: CGAL users discussion list
List archive
- From: "Audette, Michel A." <>
- To: "" <>
- Subject: [cgal-discuss] setting parameter values on the fly... problem with consts?
- Date: Fri, 19 Jul 2013 21:58:32 +0000
- Accept-language: en-US
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?
Best wishes,
Michel
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?
Best wishes,
Michel
Michel Audette, Ph.D.
Assistant Professor,
Department of Modeling, Simulation and Visualization Engineering,
Old Dominion University,
Norfolk, VA.
- [cgal-discuss] setting parameter values on the fly... problem with consts?, Audette, Michel A., 07/19/2013
Archive powered by MHonArc 2.6.18.