Non const qualified mesh type in getProperty
Hello, The function getProperty<https://www.graphics.rwth-aachen.de/media/openmesh_static/Documentations/OpenMesh-Doc-Latest/a03308.html#a8d0e0ad75218837f7ab7bff87fd6f24d>() throws an exception if no property with the name exist. As such, it could be const qualified like the old property()<https://www.graphics.rwth-aachen.de/media/openmesh_static/Documentations/OpenMesh-Doc-Latest/a02424.html#a475f64c87a2923b07c802cb57d30463f> function. So far I had only limited time to look into this, but as get_property_handle<https://www.graphics.rwth-aachen.de/media/openmesh_static/Documentations/OpenMesh-Doc-Latest/a02424.html#a889abbfc81cc37f4662948032f9f6fe1> is const qualified, perhaps this only requires a new PropertyManager constructor similar this? ``` PropertyManager(const PolyConnectivity& mesh, const char *propname) : mesh_(mesh), retain_(true), name_(propname) { if (!mesh_.get_property_handle(prop_, propname)) { throw std::runtime_error("Property Handle does not exist") } } ``` Kind regards Bastian Abt
participants (1)
-
bastian.abt@dlr.de