Skip to content
Snippets Groups Projects

add const mesh() getter for MeshObject

Merged Janis Born requested to merge const_mesh_getter into master
2 files
+ 12
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -343,7 +343,7 @@
@@ -343,7 +343,7 @@
// Content
// Content
// ===============================================================================
// ===============================================================================
/** Get a pointer to the objects mesh.
/** Get a pointer to the object's mesh.
* @return Pointer to the mesh
* @return Pointer to the mesh
*/
*/
template < class MeshT >
template < class MeshT >
@@ -351,6 +351,14 @@
@@ -351,6 +351,14 @@
return mesh_;
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,
/** Updates the visualization of the object. Calls MeshObject::updateGeometry,
* MeshObject::updateTopology, MeshObject::updateSelection and
* MeshObject::updateTopology, MeshObject::updateSelection and
* MeshObject::updateModelingRegions.
* MeshObject::updateModelingRegions.
Loading