Commit 6fd2a19e authored by Janis Born's avatar Janis Born

add const mesh() getter for MeshObject

parent a3fa0e6a
......@@ -343,7 +343,7 @@
// Content
// ===============================================================================
/** Get a pointer to the objects mesh.
/** Get a pointer to the object's mesh.
* @return Pointer to the mesh
*/
template < class MeshT >
......@@ -351,6 +351,14 @@
return mesh_;
}
/** Get a const pointer to the object's mesh.
* @return Const pointer to the mesh
*/
template < class MeshT >
const MeshT* MeshObject< MeshT >::mesh() const {
return mesh_;
}
/** Updates the visualization of the object. Calls MeshObject::updateGeometry,
* MeshObject::updateTopology, MeshObject::updateSelection and
* MeshObject::updateModelingRegions.
......
......@@ -147,6 +147,9 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
/// return a pointer to the mesh
MeshT* mesh();
/// return a const pointer to the mesh
const MeshT* mesh() const;
private:
/// pointer to the mesh
MeshT* mesh_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment