Commit f8a4c4a9 authored by Martin Heistermann's avatar Martin Heistermann

Add const mesh getter to VolumeMeshObject

parent 4f5fc9f3
......@@ -122,6 +122,7 @@ public:
public:
/// return a pointer to the mesh
MeshT* mesh();
const MeshT* mesh() const;
/** return a full copy of this object ( All scenegraph nodes will be created )
* but the object will not be a part of the object tree.
......
......@@ -216,6 +216,11 @@ MeshT* VolumeMeshObject<MeshT>::mesh() {
return mesh_.get();
}
template<class MeshT>
const MeshT* VolumeMeshObject<MeshT>::mesh() const {
return mesh_.get();
}
/** Updates the visualization of the object. Calls VolumeMeshObject::updateGeometry,
* VolumeMeshObject::updateTopology, VolumeMeshObject::updateSelection and
* VolumeMeshObject::updateModelingRegions.
......
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