Closed maxGimeno closed 4 years ago
What's the issue? it has an auto removal feature so why would you like to retrieve it? You are not supposed to lose the reference over it.
What is the point of using the surface_mesh mechanism as an internal mechanism then ?
You are supposed to keep the reference over the map otherwise it will be deleted.
Seems like this feature request is invalid ? @maxGimeno @sloriot
Again I'm not sure to understand the question, but if I understand it correctly then it should be closed :)
Max Lyon told me that in OpenMesh they introduce with 8.1 a PropertyManager, and properties without name that get deleteted when the property handle goes out of scope. It is maybe easier to discuss this the next time @sloriot is at GF. See the doc of their daily build.
I don't need this anymore and don't remember why I said that. Probably I didn't understand how to use the dyamic properties. I think this issue can be closed now.
Issue Details
The dynamic-property_maps, if used on a surface_mesh, will internally call the
Surface_mesh::add_property()
function. The problem is that a dynamic_property_map has noname
parmeter to forward to the surface_mesh, which makes it impossible to retrieve the property once added.I propose either :
get()
functions that takes astd::string name
as parameter, that would be forwarded to the surface_meshstd::string name
to thedynamic_XXX_property_t
get()
API and still have a name to give to the surface_mesh.That would help to BGLize the
read_off()
functions, within the scope of the reorganization of the CGAL IO functions.@CGAL/geometryfactory what do you think ?